Skip to contentSkip to conversation

hrtimer: Remove hrtimer_clock_base::get_softirq_time()

PATCH Applied Mark McLoughlin 2 participants 2 messages Sep 19, 2008 – Sep 22, 2008 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 hrtimer: Remove hrtimer_clock_base::get_softirq_time()

Peter Zijlstra noticed this 8 months ago and I just noticed it again.

hrtimer_clock_base::get_softirq_time() is currently unused in the entire tree. In fact, looking at the logs, it appears as if it was never used. Remove it.

---
 include/linux/hrtimer.h |    2 --
 kernel/hrtimer.c        |    4 +---
 2 files changed, 1 insertions(+), 5 deletions(-)
include/linux/hrtimer.h +0 -2
index 6d93dce..1b079bd 100644
@@ -145,7 +145,6 @@ struct hrtimer_sleeper {
  * @first:		pointer to the timer node which expires first
  * @resolution:		the resolution of the clock, in nanoseconds
  * @get_time:		function to retrieve the current time of the clock
- * @get_softirq_time:	function to retrieve the current time from the softirq
  * @softirq_time:	the time when running the hrtimer queue in the softirq
  * @offset:		offset of this clock to the monotonic base
  * @reprogram:		function to reprogram the timer event
@@ -157,7 +156,6 @@ struct hrtimer_clock_base {
 	struct rb_node		*first;
 	ktime_t			resolution;
 	ktime_t			(*get_time)(void);
-	ktime_t			(*get_softirq_time)(void);
 	ktime_t			softirq_time;
 #ifdef CONFIG_HIGH_RES_TIMERS
 	ktime_t			offset;
kernel/hrtimer.c +1 -3
index 03ea137..4d761d5 100644
@@ -1401,9 +1401,7 @@ void hrtimer_run_queues(void)
 		if (!base->first)
 			continue;
 
-		if (base->get_softirq_time)
-			base->softirq_time = base->get_softirq_time();
-		else if (gettime) {
+		if (gettime) {
 			hrtimer_get_softirq_time(cpu_base);
 			gettime = 0;
 		}
Signature · 1 line
1.5.4.3
Applied
#1 lore raw
Quoted 6 lines · Mark McLoughlin

Peter Zijlstra noticed this 8 months ago and I just noticed it again.

hrtimer_clock_base::get_softirq_time() is currently unused in the entire tree. In fact, looking at the logs, it appears as if it was never used. Remove it.

applied to tip/timers/hrtimers, thanks Mark.

Thomas, any objections?

Ingo