From: Yinghai Lu Date: Fri, 13 Mar 2009 19:46:07 +0000 (-0700) Subject: x86: fix get_mtrr() warning about smp_processor_id() with CONFIG_PREEMPT=y X-Git-Tag: v2.6.30-rc1~211^2~21^6~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63516ef6d6a8379ee5c32463efc6a75f9da8a309;p=pandora-kernel.git x86: fix get_mtrr() warning about smp_processor_id() with CONFIG_PREEMPT=y Impact: fix debug warning Jaswinder noticed that there is a warning about smp_processor_id() in get_mtrr(). Fix it by wrapping the printout into a get/put_cpu() pair. Reported-by: Jaswinder Singh Rajput Signed-off-by: Yinghai Lu Cc: Andrew Morton LKML-Reference: <49BAB7FF.4030107@kernel.org> [ changed to get/put_cpu(), cleaned up surrounding code a it. ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed