diff options
author | Akshay Adiga <[email protected]> | 2016-11-08 19:03:28 +0530 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2016-11-11 01:41:02 +0100 |
commit | 20b15b7663549b34abcb4a18f16fedb239406c41 (patch) | |
tree | 1b1b4e306b28e582110b7481e53cd06feaa5103e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 60c9efb8f783194200bdb510df8d9d4fb398016e (diff) |
cpufreq: powernv: Use PMCR to verify global and local pstate
As fast_switch() may get called with interrupt disable mode, we cannot
hold a mutex to update the global_pstate_info. So currently, fast_switch()
does not update the global_pstate_info and it will end up with stale data
whenever pstate is updated through fast_switch().
As the gpstate_timer can fire after fast_switch() has updated the pstates,
the timer handler cannot rely on the cached values of local and global
pstate and needs to read it from the PMCR.
Only gpstate_timer_handler() is affected by the stale cached pstate data
beacause either fast_switch() or target_index() routines will be called
for a given govenor, but gpstate_timer can fire after the governor has
changed to schedutil.
Signed-off-by: Akshay Adiga <[email protected]>
Reviewed-by: Gautham R. Shenoy <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions