From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751525AbeAPDta (ORCPT + 1 other); Mon, 15 Jan 2018 22:49:30 -0500 Received: from terminus.zytor.com ([65.50.211.136]:58097 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbeAPDt1 (ORCPT ); Mon, 15 Jan 2018 22:49:27 -0500 Date: Mon, 15 Jan 2018 19:46:04 -0800 From: tip-bot for Anna-Maria Gleixner Message-ID: Cc: hpa@zytor.com, peterz@infradead.org, linux-kernel@vger.kernel.org, anna-maria@linutronix.de, tglx@linutronix.de, john.stultz@linaro.org, torvalds@linux-foundation.org, hch@lst.de, mingo@kernel.org Reply-To: torvalds@linux-foundation.org, hch@lst.de, mingo@kernel.org, tglx@linutronix.de, john.stultz@linaro.org, hpa@zytor.com, linux-kernel@vger.kernel.org, peterz@infradead.org, anna-maria@linutronix.de In-Reply-To: <20171221104205.7269-15-anna-maria@linutronix.de> References: <20171221104205.7269-15-anna-maria@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] hrtimer: Use accesor functions instead of direct access Git-Commit-ID: 851cff8caf4d638d001aac6e57a3511abd94f100 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Commit-ID: 851cff8caf4d638d001aac6e57a3511abd94f100 Gitweb: https://git.kernel.org/tip/851cff8caf4d638d001aac6e57a3511abd94f100 Author: Anna-Maria Gleixner AuthorDate: Thu, 21 Dec 2017 11:41:43 +0100 Committer: Ingo Molnar CommitDate: Tue, 16 Jan 2018 02:35:47 +0100 hrtimer: Use accesor functions instead of direct access __hrtimer_hres_active() is now available unconditionally, so replace open coded direct accesses to hrtimer_cpu_base.hres_active. No functional change. Signed-off-by: Anna-Maria Gleixner Cc: Christoph Hellwig Cc: John Stultz Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: keescook@chromium.org Link: http://lkml.kernel.org/r/20171221104205.7269-15-anna-maria@linutronix.de Signed-off-by: Ingo Molnar --- kernel/time/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index b688090..5a624f9 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -564,7 +564,7 @@ hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base, int skip_equal) { ktime_t expires_next; - if (!cpu_base->hres_active) + if (!__hrtimer_hres_active(cpu_base)) return; expires_next = __hrtimer_get_next_event(cpu_base); @@ -673,7 +673,7 @@ static void retrigger_next_event(void *arg) { 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);