[PATCH] powerpc : Fix sleeping-in-atomic section warning triggered by /proc/cpuinfo

2018-01-10 Thread Shriya
Commit cd77b5ce208c ("Fix the frequency read by /proc/cpuinfo") to fix /proc/cpuinfo on POWERNV triggered a sleeping-in-atomic section warning. This was because the place where we cpufreq_get (which takes an rwsem) from show_cpuinfo is in a preempt_disabled. However, the preempt_disable() in

[PATCH v2] cpufreq: powernv: Fix the frequency read by /proc/cpuinfo

2017-10-12 Thread Shriya
. Fixes : commit fb5153d05a7d ("powerpc: powernv: Implement ppc_md.get_proc_freq()") Cc: sta...@vger.kernel.org Signed-off-by: Shriya <shri...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powernv/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/p

[PATCH] cpufreq: powernv: Return the actual CPU frequency in /proc/cpuinfo

2017-10-06 Thread Shriya
Make /proc/cpuinfo read the frequency of the CPU it is running at instead of reading the cached value of the last requested frequency. In conditions like WOF/throttle CPU can be running at a different frequency than the requested frequency. Signed-off-by: Shriya <shri...@linux.vnet.ibm.