From: Gleb Natapov Date: Wed, 28 Nov 2012 13:19:08 +0000 (+0200) Subject: KVM: use is_idle_task() instead of idle_cpu() to decide when to halt in async_pf X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~27^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=859f8450d8a334a7f7cb994e4676cf918deff832;p=pandora-kernel.git KVM: use is_idle_task() instead of idle_cpu() to decide when to halt in async_pf As Frederic pointed idle_cpu() may return false even if async fault happened in the idle task if wake up is pending. In this case the code will try to put idle task to sleep. Fix this by using is_idle_task() to check for idle task. Reported-by: Frederic Weisbecker Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed