lkml.org 
[lkml]   [2017]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH v2 14/37] hrtimer: Use accesor functions instead of direct access
__hrtimer_hres_active() is now available unconditionally. Replace the
direct access to hrtimer_cpu_base.hres_active.

No functional change.

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

--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -571,7 +571,7 @@ hrtimer_force_reprogram(struct hrtimer_c
{
ktime_t expires_next;

- if (!cpu_base->hres_active)
+ if (!__hrtimer_hres_active(cpu_base))
return;

expires_next = __hrtimer_get_next_event(cpu_base);
@@ -680,7 +680,7 @@ static void retrigger_next_event(void *a
{
struct hrtimer_cpu_base *base = this_cpu_ptr(&hrtimer_bases);

- if (!base->hres_active)
+ if (!__hrtimer_hres_active(base))
return;

raw_spin_lock(&base->lock);

\
 
 \ /
  Last update: 2017-10-22 23:50    [W:0.234 / U:2.968 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site