History

softirq: Remove tasklet_hrtimer

There are no more users of this interface. Remove it.

Thomas Gleixner committed 7 years ago

Commit d7dcf261 parent 671422b2 files · +0 −76Browse files

Unified · Split

2 files
  1. include/linux/interrupt.h +0 −25
  2. kernel/softirq.c +0 −51
include/linux/interrupt.h+0−25
@@ -668,31 +668,6 @@ extern void tasklet_kill_immediate(struct tasklet_struct *t, unsigned int cpu); · 667 unmodified lines
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+0−51
@@ -573,57 +573,6 @@ void tasklet_kill(struct tasklet_struct *t) · 572 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t