lkml.org 
[lkml]   [2008]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH 3/4] timers: identifying cpu-pinned hrtimer.
This patch identifies the cpu-pinned hrtimer in kernel/sched.c


Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>
---
kernel/sched.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6.27/kernel/sched.c
===================================================================
--- linux-2.6.27.orig/kernel/sched.c
+++ linux-2.6.27/kernel/sched.c
@@ -1099,7 +1099,8 @@ static __init void init_hrtick(void)
*/
static void hrtick_start(struct rq *rq, u64 delay)
{
- hrtimer_start(&rq->hrtick_timer, ns_to_ktime(delay), HRTIMER_MODE_REL);
+ hrtimer_start_pinned(&rq->hrtick_timer, ns_to_ktime(delay),
+ HRTIMER_MODE_REL);
}

static void init_hrtick(void)

\
 
 \ /
  Last update: 2008-10-16 13:53    [W:0.036 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site