summaryrefslogtreecommitdiffstats
path: root/kernel/semaphore.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 21:21:15 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 22:34:56 +0200
commit74f4e369fc5b52433ad824cef32d3bf1304549be (patch)
treec70d073a2740821f52d8b2b09f01626a06201e74 /kernel/semaphore.c
parent5b82a1b08a00b2adca3d9dd9777efff40b7aaaa1 (diff)
downloadop-kernel-dev-74f4e369fc5b52433ad824cef32d3bf1304549be.zip
op-kernel-dev-74f4e369fc5b52433ad824cef32d3bf1304549be.tar.gz
ftrace: stacktrace fix
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/semaphore.c')
-rw-r--r--kernel/semaphore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/semaphore.c b/kernel/semaphore.c
index 5c2942e..1a064ad 100644
--- a/kernel/semaphore.c
+++ b/kernel/semaphore.c
@@ -31,6 +31,7 @@
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/spinlock.h>
+#include <linux/ftrace.h>
static noinline void __down(struct semaphore *sem);
static noinline int __down_interruptible(struct semaphore *sem);
@@ -53,6 +54,7 @@ void down(struct semaphore *sem)
{
unsigned long flags;
+ ftrace_special(sem->count, 0, __LINE__);
spin_lock_irqsave(&sem->lock, flags);
if (likely(sem->count > 0))
sem->count--;
OpenPOWER on IntegriCloud