diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-09-27 11:11:46 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2014-02-26 21:21:15 -0500 |
commit | c064ff81516753161cc21e3fef432e413ea44703 (patch) | |
tree | 93312104eb0b714db809051d588b28def8af2d6f /mm | |
parent | 06826f7caf9bf8b95700e6b5816d04720aa31ddf (diff) | |
download | linux-rt-c064ff81516753161cc21e3fef432e413ea44703.tar.gz |
mm: page_alloc: Use local_lock_on() instead of plain spinlock
The plain spinlock while sufficient does not update the local_lock
internals. Use a proper local_lock function instead to ease debugging.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f9f350b75763..99f115396fec 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -221,9 +221,9 @@ static DEFINE_LOCAL_IRQ_LOCK(pa_lock); #ifdef CONFIG_PREEMPT_RT_BASE # define cpu_lock_irqsave(cpu, flags) \ - spin_lock_irqsave(&per_cpu(pa_lock, cpu).lock, flags) + local_lock_irqsave_on(pa_lock, flags, cpu) # define cpu_unlock_irqrestore(cpu, flags) \ - spin_unlock_irqrestore(&per_cpu(pa_lock, cpu).lock, flags) + local_unlock_irqrestore_on(pa_lock, flags, cpu) #else # define cpu_lock_irqsave(cpu, flags) local_irq_save(flags) # define cpu_unlock_irqrestore(cpu, flags) local_irq_restore(flags) |