lkml.org 
[lkml]   [2010]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] generic-ipi: add lock context annotations
Date
The ipi_call_[un]lock[_irq] functions grab/release a spin lock
but were missing proper annotations. Add it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
kernel/smp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/kernel/smp.c b/kernel/smp.c
index 12ed8b0..5a62f1f 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -511,21 +511,25 @@ int smp_call_function(smp_call_func_t func, void *info, int wait)
EXPORT_SYMBOL(smp_call_function);

void ipi_call_lock(void)
+ __acquires(call_function.lock)
{
raw_spin_lock(&call_function.lock);
}

void ipi_call_unlock(void)
+ __releases(call_function.lock)
{
raw_spin_unlock(&call_function.lock);
}

void ipi_call_lock_irq(void)
+ __acquires(call_function.lock)
{
raw_spin_lock_irq(&call_function.lock);
}

void ipi_call_unlock_irq(void)
+ __releases(call_function.lock)
{
raw_spin_unlock_irq(&call_function.lock);
}
--
1.7.0.4


\
 
 \ /
  Last update: 2010-11-22 08:37    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site