[PATCH 10/11] sched/cleanup: remove the extra parm of retrigger_next_event()

From: Michael wang
Date: Thu Aug 22 2013 - 03:59:32 EST


Parm 'arg' has not been used, remove it to make code clean.

CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Signed-off-by: Michael Wang <wangyun@xxxxxxxxxxxxxxxxxx>
---
kernel/hrtimer.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 383319b..1abca37 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -678,7 +678,7 @@ static inline ktime_t hrtimer_update_base(struct hrtimer_cpu_base *base)
*
* Called with interrupts disabled via on_each_cpu()
*/
-static void retrigger_next_event(void *arg)
+static void retrigger_next_event(void)
{
struct hrtimer_cpu_base *base = &__get_cpu_var(hrtimer_bases);

@@ -717,7 +717,7 @@ static int hrtimer_switch_to_hres(void)

tick_setup_sched_timer();
/* "Retrigger" the interrupt to get things going */
- retrigger_next_event(NULL);
+ retrigger_next_event();
local_irq_restore(flags);
return 1;
}
@@ -751,7 +751,7 @@ static inline int hrtimer_enqueue_reprogram(struct hrtimer *timer,
return 0;
}
static inline void hrtimer_init_hres(struct hrtimer_cpu_base *base) { }
-static inline void retrigger_next_event(void *arg) { }
+static inline void retrigger_next_event(void) { }

#endif /* CONFIG_HIGH_RES_TIMERS */

@@ -787,7 +787,7 @@ void hrtimers_resume(void)
KERN_INFO "hrtimers_resume() called with IRQs enabled!");

/* Retrigger on the local CPU */
- retrigger_next_event(NULL);
+ retrigger_next_event();
/* And schedule a retrigger for all others */
clock_was_set_delayed();
}
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/