[PATCH] make smp.c preempt-safe
authorRobert Love <rml@tech9.net>
Mon, 3 Jun 2002 03:55:55 +0000 (20:55 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 3 Jun 2002 03:55:55 +0000 (20:55 -0700)
commit373c84d2cdc1e51ced83d24d9b934258ae38111e
treeee0d95a8e05e21f1ca99e52ae7759a54c3d8c1ed
parent5e40a79ffa64f35b8dd52b0ec7350eef2092afe4
[PATCH] make smp.c preempt-safe

The attached patch cleans up some per-CPU code in arch/i386/kernel/smp.c
that could be problematic under preemption.

The first I solve with the new get_cpu interface, for the second two I
explicitly disable preemption.  I also changed 1 to 1UL in the shift to
properly match the type.
arch/i386/kernel/smp.c