The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] sched: remove hrtick_enabled()
@ 2011-04-18 12:27 Hillf Danton
  2011-04-18 13:04 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Hillf Danton @ 2011-04-18 12:27 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar, Peter Zijlstra

The function, hrtick_enabled(), could be removed, since it is not used
anywhere, though defined.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/kernel/sched.c	2011-03-30 03:09:48.000000000 +0800
+++ b/kernel/sched.c	2011-04-18 20:28:22.000000000 +0800
@@ -994,20 +994,6 @@ static struct rq *this_rq_lock(void)
  * rq->lock.
  */

-/*
- * Use hrtick when:
- *  - enabled by features
- *  - hrtimer is actually high res
- */
-static inline int hrtick_enabled(struct rq *rq)
-{
-	if (!sched_feat(HRTICK))
-		return 0;
-	if (!cpu_active(cpu_of(rq)))
-		return 0;
-	return hrtimer_is_hres_active(&rq->hrtick_timer);
-}
-
 static void hrtick_clear(struct rq *rq)
 {
 	if (hrtimer_active(&rq->hrtick_timer))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-18 13:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 12:27 [PATCH] sched: remove hrtick_enabled() Hillf Danton
2011-04-18 13:04 ` Ingo Molnar
2011-04-18 13:25   ` Hillf Danton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox