diff options
Diffstat (limited to 'lib/smp_processor_id.c')
| -rw-r--r-- | lib/smp_processor_id.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 4c0d0e51d49e..04abe53f12a1 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c | |||
| @@ -9,10 +9,9 @@ | |||
| 9 | 9 | ||
| 10 | notrace unsigned int debug_smp_processor_id(void) | 10 | notrace unsigned int debug_smp_processor_id(void) |
| 11 | { | 11 | { |
| 12 | unsigned long preempt_count = preempt_count(); | ||
| 13 | int this_cpu = raw_smp_processor_id(); | 12 | int this_cpu = raw_smp_processor_id(); |
| 14 | 13 | ||
| 15 | if (likely(preempt_count)) | 14 | if (likely(preempt_count())) |
| 16 | goto out; | 15 | goto out; |
| 17 | 16 | ||
| 18 | if (irqs_disabled()) | 17 | if (irqs_disabled()) |
