From: cpw@sgi.com Date: Tue, 21 Jun 2011 12:21:26 +0000 (-0500) Subject: x86, UV: Fix smp_processor_id() use in a preemptable region X-Git-Tag: v3.1-rc1~284^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b30cf04a775b5292ab704f782394e36e25617d;p=pandora-kernel.git x86, UV: Fix smp_processor_id() use in a preemptable region Fix a call by tunables_write() to smp_processor_id() within a preemptable region. Call get_cpu()/put_cpu() around the region where the returned cpu number is actually used, which makes it non-preemptable. A DEBUG_PREEMPT warning is prevented. UV does not support cpu hotplug yet, but this is a step toward that ability as well. Signed-off-by: Cliff Wickman Link: http://lkml.kernel.org/r/20110621122242.086384966@sgi.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed