Re: [PATCH RESEND v4 1/4] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-01-12 Thread Shreyas B Prabhu
On 01/12/2016 03:54 PM, Shilpasri G Bhat wrote: > cpu_to_chip_id() does a DT walk through to find out the chip id by taking a > contended device tree lock. This adds an unnecessary overhead in a hot-path. > So instead of cpu_to_chip_id() use PIR of the cpu to find the chip id. > > Reported-by: A

[PATCH RESEND v4 1/4] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-01-12 Thread Shilpasri G Bhat
cpu_to_chip_id() does a DT walk through to find out the chip id by taking a contended device tree lock. This adds an unnecessary overhead in a hot-path. So instead of cpu_to_chip_id() use PIR of the cpu to find the chip id. Reported-by: Anton Blanchard Signed-off-by: Shilpasri G Bhat --- driver