Skip to contentSkip to conversation

hrtimer: remove hrtimer_clock_base::get_softirq_time

PATCH New Peter Zijlstra 1 participant 1 message Jan 16, 2008 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hrtimer: remove hrtimer_clock_base::get_softirq_time

Subject: hrtimer: remove hrtimer_clock_base::get_softirq_time()

When looking over the hrtimer code I noticed that hrtimer_clock_base::get_softirq_time() is currently unused in the entire tree, remove it.

---
 include/linux/hrtimer.h |    2 --
 kernel/hrtimer.c        |    3 ---
 2 files changed, 5 deletions(-)
include/linux/hrtimer.h +0 -2
Index: linux-2.6/include/linux/hrtimer.h
===================================================================
@@ -147,7 +147,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
@@ -159,7 +158,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 +0 -3
Index: linux-2.6/kernel/hrtimer.c
===================================================================
@@ -1177,9 +1177,6 @@ static inline void run_hrtimer_queue(str
 	if (!base->first)
 		return;
 
-	if (base->get_softirq_time)
-		base->softirq_time = base->get_softirq_time();
-
 	spin_lock_irq(&cpu_base->lock);
 
 	while ((node = base->first)) {