diff options
author | Sumit Singh <sumsingh@nvidia.com> | 2014-04-21 15:29:54 +0530 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2014-06-24 04:48:08 -0700 |
commit | 7280919965cf4390f51def49413934e4fd98841c (patch) | |
tree | 0947f4a4d9d5436b25c1b1eb3539c0d5ef30eff6 /kernel | |
parent | e482f667f3948efb1cbb8f3d491919f6ebf48236 (diff) |
cpu: enhance power efficiency
Here we are trying to reduce power usage through the
use of macros cpu_relaxed_read and relaxed version of
idle_cpu().
Bug 1440421
Change-Id: I0a8c5d358c154782b41570059d03d7e0de87e82c
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/426485
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 9dd31fafaa81..43f6fcf752b0 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -328,8 +328,8 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) * * Wait for the stop thread to go away. */ - while (!idle_cpu(cpu)) - cpu_relax(); + while (!idle_cpu_relaxed(cpu)) + cpu_read_relax(); /* This actually kills the CPU. */ __cpu_die(cpu); |