Skip to content

Commit

Permalink
x86: cpumask: update 32-bit APM not to mug current->cpus_allowed
Browse files Browse the repository at this point in the history
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 <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
LKML-Reference: <200903111631.29787.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Mar 18, 2009
1 parent 4bae196 commit 89bd55d
Showing 1 changed file with 145 additions and 103 deletions.
Loading

0 comments on commit 89bd55d

Please sign in to comment.