diff options
author | [email protected] <[email protected]> | 2011-06-21 07:21:26 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-06-21 14:50:31 +0200 |
commit | 00b30cf04a775b5292ab704f782394e36e25617d (patch) | |
tree | f32ed307eb07b5aca3130e99f4479ed6f4e736b5 /net/lapb/lapb_timer.c | |
parent | 6885685923ee786f26e7b170e3b961ac0fa14037 (diff) |
x86, UV: Fix smp_processor_id() use in a preemptable region
Fix a call by tunables_write() to smp_processor_id() within a
preemptable region.
Call get_cpu()/put_cpu() around the region where the returned
cpu number is actually used, which makes it non-preemptable.
A DEBUG_PREEMPT warning is prevented.
UV does not support cpu hotplug yet, but this is a step toward
that ability as well.
Signed-off-by: Cliff Wickman <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions