diff options
author | Tejun Heo <[email protected]> | 2012-08-08 11:10:27 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2012-08-21 16:28:30 +0200 |
commit | fc683995a6c4e604d62ab9a488ac2c1ba94fa868 (patch) | |
tree | c43956da7c1fc34446d40d64f7cff81475915fee /tools/perf/util/trace-event-scripting.c | |
parent | 5a9af38d05f6a1bd0d3f1f69a074cdbe9c87e977 (diff) |
timer: Clean up timer initializers
Over time, timer initializers became messy with unnecessarily
duplicated code which are inconsistently spread across timer.h and
timer.c.
This patch cleans up timer initializers.
* timer.c::__init_timer() is renamed to do_init_timer().
* __TIMER_INITIALIZER() added. It takes @flags and all initializers
are wrappers around it.
* init_timer[_on_stack]_key() now take @flags.
* __init_timer[_on_stack]() added. They take @flags and all init
macros are wrappers around them.
* __setup_timer[_on_stack]() added. It uses __init_timer() and takes
@flags. All setup macros are wrappers around the two.
Note that this patch doesn't add missing init/setup combinations -
e.g. init_timer_deferrable_on_stack(). Adding missing ones is
trivial.
Signed-off-by: Tejun Heo <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions