From: Suresh Siddha Date: Wed, 24 Nov 2010 00:11:40 +0000 (-0800) Subject: x86, suspend: Avoid unnecessary smp alternatives switch during suspend/resume X-Git-Tag: v2.6.38-rc1~478^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fb82d56ad003e804923185316236f26b30dfdd5;p=pandora-kernel.git x86, suspend: Avoid unnecessary smp alternatives switch during suspend/resume During suspend, we disable all the non boot cpus. And during resume we bring them all back again. So no need to do alternatives_smp_switch() in between. On my core 2 based laptop, this speeds up the suspend path by 15msec and the resume path by 5 msec (suspend/resume speed up differences can be attributed to the different P-states that the cpu is in during suspend/resume). Signed-off-by: Suresh Siddha LKML-Reference: <1290557500.4946.8.camel@sbsiddha-MOBL3.sc.intel.com> Cc: Rafael J. Wysocki Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed