timer: Generalize timer->base flags handling
authorTejun Heo <tj@kernel.org>
Wed, 8 Aug 2012 18:10:25 +0000 (11:10 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 21 Aug 2012 14:28:30 +0000 (16:28 +0200)
commite52b1db37b89b69ceb08b521a808bd2cf4724481
tree9f37d5060e57f1b2746047c204b1c96725463f39
parenteec19d1a0d04c80e66eef634f7b8f460f2ca5643
timer: Generalize timer->base flags handling

To prepare for addition of another flag, generalize timer->base flags
handling.

* Rename from TBASE_*_FLAG to TIMER_* and make them LU constants.

* Define and use TIMER_FLAG_MASK for flags masking so that multiple
  flags can be handled correctly.

* Don't dereference timer->base directly even if
  !tbase_get_deferrable().  All two such places are already passed in
  @base, so use it instead.

* Make sure tvec_base's alignment is large enough for timer->base
  flags using BUILD_BUG_ON().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: torvalds@linux-foundation.org
Cc: peterz@infradead.org
Link: http://lkml.kernel.org/r/1344449428-24962-2-git-send-email-tj@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/timer.h
kernel/timer.c