timer: Setup uninitialized timer with a stub callback
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 8 Nov 2011 03:48:26 +0000 (19:48 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Nov 2011 17:49:23 +0000 (18:49 +0100)
commitfb16b8cf0b66386134b09e7b8b7056450272d159
tree269b803c19c57152b8551410c73bb18a0cf71d0d
parentb84d435cc228e87951f3bbabf6cc4a5f25d5fb16
timer: Setup uninitialized timer with a stub callback

Remove the WARN_ON() in timer_fixup_activate() as we now get the
debugobjects printout in the debugobjects activate check.

We also assign a dummy timer callback so that if the timer is
actually set to fire we don't oops.

[ tglx@linutronix.de: Split out the debugobjects vs. the timer change ]

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Christine Chan <cschan@codeaurora.org>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1320724108-20788-2-git-send-email-sboyd@codeaurora.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c