]> git.baikalelectronics.ru Git - kernel.git/commit
x86, hotplug: Fix powersavings with offlined cores on AMD
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 20 Jan 2011 14:42:52 +0000 (15:42 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 22 Jan 2011 02:14:54 +0000 (18:14 -0800)
commit561a743a68037d17b2d0bb184dd6c492647f8372
tree551a937a1f236118fd149cbbcc635ef283a7a94c
parent21f85fa892f73bb7f00f72b1a207a7c6191a0322
x86, hotplug: Fix powersavings with offlined cores on AMD

fae63fbd45eca00b481c7fe4a28a60a3e8142e15 made a CPU use monitor/mwait
when offline. This is not the optimal choice for AMD wrt to powersavings
and we'd prefer our cores to halt (i.e. enter C1) instead. For this, the
same selection whether to use monitor/mwait has to be used as when we
select the idle routine for the machine.

With this patch, offlining cores 1-5 on a X6 machine allows core0 to
boost again.

[ hpa: putting this in urgent since it is a (power) regression fix ]

Reported-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: stable@kernel.org # 37.x
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Venkatesh Pallipadi <venki@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.hl>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <1295534572-10730-1-git-send-email-bp@amd64.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cpu.h
arch/x86/kernel/process.c
arch/x86/kernel/smpboot.c