lkml.org 
[lkml]   [2017]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 01/25] hrtimer: Use predefined function for updating next_timer
From: Anna-Maria Gleixner <anna-maria@linutronix.de>

There already exist a function for updating the next_timer
hrtimer_update_next_timer().

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
---
kernel/time/hrtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -630,7 +630,7 @@ static void hrtimer_reprogram(struct hrt
return;

/* Update the pointer to the next expiring timer */
- cpu_base->next_timer = timer;
+ hrtimer_update_next_timer(cpu_base, timer);

/*
* If a hang was detected in the last timer interrupt then we

\
 
 \ /
  Last update: 2017-08-31 14:28    [W:1.575 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site