From: Jeremy Fitzhardinge Date: Thu, 12 Feb 2009 18:02:56 +0000 (-0800) Subject: x86/paravirt: make arch_flush_lazy_mmu/cpu disable preemption X-Git-Tag: v2.6.29-rc6~74^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d85cf93da66977dbc645352be1b2084a659d8a0b;p=pandora-kernel.git x86/paravirt: make arch_flush_lazy_mmu/cpu disable preemption Impact: avoid access to percpu vars in preempible context They are intended to be used whenever there's the possibility that there's some stale state which is going to be overwritten with a queued update, or to force a state change when we may be in lazy mode. Either way, we could end up calling it with preemption enabled, so wrap the functions in their own little preempt-disable section so they can be safely called in any context (though preemption should never be enabled if we're actually in a lazy state). (Move out of line to avoid #include dependencies.) Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed