[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5215C4D8.4040403@linux.vnet.ibm.com>
Date: Thu, 22 Aug 2013 15:59:20 +0800
From: Michael wang <wangyun@...ux.vnet.ibm.com>
To: open list <linux-kernel@...r.kernel.org>
CC: Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [PATCH 10/11] sched/cleanup: remove the extra parm of retrigger_next_event()
Parm 'arg' has not been used, remove it to make code clean.
CC: Thomas Gleixner <tglx@...utronix.de>
CC: Ingo Molnar <mingo@...hat.com>
CC: Peter Zijlstra <peterz@...radead.org>
Signed-off-by: Michael Wang <wangyun@...ux.vnet.ibm.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists