From: Rusty Russell Date: Wed, 11 Mar 2009 06:01:29 +0000 (+1030) Subject: x86: cpumask: update 32-bit APM not to mug current->cpus_allowed X-Git-Tag: v2.6.30-rc1~3^2~6^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89bd55d1855f8e9a4e9add8e93f3144d049c469e;p=pandora-kernel.git x86: cpumask: update 32-bit APM not to mug current->cpus_allowed Impact: cleanup, avoid cpumask games The APM code wants to run on CPU 0: we create an "on_cpu0" wrapper which uses work_on_cpu() if we're not already on cpu 0. This introduces a new failure mode: -ENOMEM, so we add an explicit err arg and handle Linux-style errnos in apm_err(). Signed-off-by: Rusty Russell Cc: Andrew Morton Cc: Stephen Rothwell LKML-Reference: <200903111631.29787.rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed