Skip to content

Commit d7dcf26

Browse files
committed
softirq: Remove tasklet_hrtimer
There are no more users of this interface. Remove it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: David S. Miller <davem@davemloft.net> Cc: netdev@vger.kernel.org Link: https://lkml.kernel.org/r/20190301224821.29843-4-bigeasy@linutronix.de
1 parent 671422b commit d7dcf26

2 files changed

Lines changed: 0 additions & 76 deletions

File tree

‎include/linux/interrupt.h‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -668,31 +668,6 @@ extern void tasklet_kill_immediate(struct tasklet_struct *t, unsigned int cpu);
668668
extern void tasklet_init(struct tasklet_struct *t,
669669
void (*func)(unsigned long), unsigned long data);
670670

671-
struct tasklet_hrtimer {
672-
struct hrtimer timer;
673-
struct tasklet_struct tasklet;
674-
enum hrtimer_restart (*function)(struct hrtimer *);
675-
};
676-
677-
extern void
678-
tasklet_hrtimer_init(struct tasklet_hrtimer *ttimer,
679-
enum hrtimer_restart (*function)(struct hrtimer *),
680-
clockid_t which_clock, enum hrtimer_mode mode);
681-
682-
static inline
683-
void tasklet_hrtimer_start(struct tasklet_hrtimer *ttimer, ktime_t time,
684-
const enum hrtimer_mode mode)
685-
{
686-
hrtimer_start(&ttimer->timer, time, mode);
687-
}
688-
689-
static inline
690-
void tasklet_hrtimer_cancel(struct tasklet_hrtimer *ttimer)
691-
{
692-
hrtimer_cancel(&ttimer->timer);
693-
tasklet_kill(&ttimer->tasklet);
694-
}
695-
696671
/*
697672
* Autoprobing for irqs:
698673
*

‎kernel/softirq.c‎

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -573,57 +573,6 @@ void tasklet_kill(struct tasklet_struct *t)
573573
}
574574
EXPORT_SYMBOL(tasklet_kill);
575575

576-
/*
577-
* tasklet_hrtimer
578-
*/
579-
580-
/*
581-
* The trampoline is called when the hrtimer expires. It schedules a tasklet
582-
* to run __tasklet_hrtimer_trampoline() which in turn will call the intended
583-
* hrtimer callback, but from softirq context.
584-
*/
585-
static enum hrtimer_restart __hrtimer_tasklet_trampoline(struct hrtimer *timer)
586-
{
587-
struct tasklet_hrtimer *ttimer =
588-
container_of(timer, struct tasklet_hrtimer, timer);
589-
590-
tasklet_hi_schedule(&ttimer->tasklet);
591-
return HRTIMER_NORESTART;
592-
}
593-
594-
/*
595-
* Helper function which calls the hrtimer callback from
596-
* tasklet/softirq context
597-
*/
598-
static void __tasklet_hrtimer_trampoline(unsigned long data)
599-
{
600-
struct tasklet_hrtimer *ttimer = (void *)data;
601-
enum hrtimer_restart restart;
602-
603-
restart = ttimer->function(&ttimer->timer);
604-
if (restart != HRTIMER_NORESTART)
605-
hrtimer_restart(&ttimer->timer);
606-
}
607-
608-
/**
609-
* tasklet_hrtimer_init - Init a tasklet/hrtimer combo for softirq callbacks
610-
* @ttimer: tasklet_hrtimer which is initialized
611-
* @function: hrtimer callback function which gets called from softirq context
612-
* @which_clock: clock id (CLOCK_MONOTONIC/CLOCK_REALTIME)
613-
* @mode: hrtimer mode (HRTIMER_MODE_ABS/HRTIMER_MODE_REL)
614-
*/
615-
void tasklet_hrtimer_init(struct tasklet_hrtimer *ttimer,
616-
enum hrtimer_restart (*function)(struct hrtimer *),
617-
clockid_t which_clock, enum hrtimer_mode mode)
618-
{
619-
hrtimer_init(&ttimer->timer, which_clock, mode);
620-
ttimer->timer.function = __hrtimer_tasklet_trampoline;
621-
tasklet_init(&ttimer->tasklet, __tasklet_hrtimer_trampoline,
622-
(unsigned long)ttimer);
623-
ttimer->function = function;
624-
}
625-
EXPORT_SYMBOL_GPL(tasklet_hrtimer_init);
626-
627576
void __init softirq_init(void)
628577
{
629578
int cpu;

0 commit comments

Comments
 (0)