mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
hrtimers: Delete hrtimer_init()
hrtimer_init() is now unused. Delete it. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/all/003722f60c7a2a4f8d4ed24fb741aa313b7e5136.1738746927.git.namcao@linutronix.de
This commit is contained in:
@@ -1640,26 +1640,6 @@ static void __hrtimer_setup(struct hrtimer *timer,
|
||||
timer->function = function;
|
||||
}
|
||||
|
||||
/**
|
||||
* hrtimer_init - initialize a timer to the given clock
|
||||
* @timer: the timer to be initialized
|
||||
* @clock_id: the clock to be used
|
||||
* @mode: The modes which are relevant for initialization:
|
||||
* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,
|
||||
* HRTIMER_MODE_REL_SOFT
|
||||
*
|
||||
* The PINNED variants of the above can be handed in,
|
||||
* but the PINNED bit is ignored as pinning happens
|
||||
* when the hrtimer is started
|
||||
*/
|
||||
void hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
|
||||
enum hrtimer_mode mode)
|
||||
{
|
||||
debug_init(timer, clock_id, mode);
|
||||
__hrtimer_init(timer, clock_id, mode);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(hrtimer_init);
|
||||
|
||||
/**
|
||||
* hrtimer_setup - initialize a timer to the given clock
|
||||
* @timer: the timer to be initialized
|
||||
|
||||
Reference in New Issue
Block a user