timer: Print function name for timer callbacks modifying preemption count
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 11 Mar 2010 22:04:46 +0000 (14:04 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Mar 2010 21:40:42 +0000 (22:40 +0100)
commit06f71b922ce5a05352acd706564ca4ae1f2add0e
tree36e2febfdb380364f1df10c48560695d8406635f
parent64ce4c2f5252f25798117fa80a027993163d6d84
timer: Print function name for timer callbacks modifying preemption count

A function scheduled with a timer must not exit with a different
preempt count than it was entered. To make helping users running into
the corresponding BUG() easier also print the name of the bad function
not only its address.

[ tglx: Sanitized printk ]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: johnstul@us.ibm.com
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c