From patchwork Wed Mar 26 11:21:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27103 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C53220369 for ; Wed, 26 Mar 2014 11:23:26 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id pa12sf4288221veb.8 for ; Wed, 26 Mar 2014 04:23:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=2r0AGu4vmzxI0Qx8SPBHqg5jNGNYcfoF11zpxxMVfR8=; b=QnvmUiP8NWxUfsNyqj1yze1Kmk/v7J+vLqyT3Mr2Y9T+Szieqmw/l4SIfzqnlEwckB iGYTivsODLnmGKwUcDDfnp84vt7AasfsdIO9TalaEIxveyBoMWboJpUf94PgwqI73bzE ffztKC2/itxo9YDUQu9UJlHJ2WMBm3ZEL0H50KharOElVOSg7zDYyW5j6iUvmkFa384P m3p2ctwI5XgPPL2jxXjxzVfmSLHJ6Q5HFDLlk2bJxIXBFiN4plTuEG7cBWJOud7QfBLH tYlbbjhcpsAMEaOb+aAfc7ZalGde/3/CsWAoVgqNU/bSvRZSTDu6DKWg+FVg/31mq4YY Gpfw== X-Gm-Message-State: ALoCoQmPOGO9MqAiyxL4bFzYST18wDNXFtKxnL6yFTw+xEbWfrkqo8bf9Pr1n7zeERzK3kCdiO1V X-Received: by 10.236.21.180 with SMTP id r40mr4148243yhr.48.1395833006025; Wed, 26 Mar 2014 04:23:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.72 with SMTP id f66ls569321qga.47.gmail; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr24748809vef.12.1395833005929; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id i13si4371187vcx.211.2014.03.26.04.23.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:23:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so2128961vcb.19 for ; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) X-Received: by 10.221.74.65 with SMTP id yv1mr99455vcb.31.1395833005854; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp38083vck; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) X-Received: by 10.66.189.226 with SMTP id gl2mr3914750pac.65.1395833005017; Wed, 26 Mar 2014 04:23:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zw7si9858230pac.193.2014.03.26.04.23.24; Wed, 26 Mar 2014 04:23:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754624AbaCZLWh (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:37 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:62962 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCZLWa (ORCPT ); Wed, 26 Mar 2014 07:22:30 -0400 Received: by mail-we0-f175.google.com with SMTP id q58so1008527wes.20 for ; Wed, 26 Mar 2014 04:22:29 -0700 (PDT) X-Received: by 10.180.189.139 with SMTP id gi11mr30737263wic.53.1395832948944; Wed, 26 Mar 2014 04:22:28 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id di9sm1799086wid.6.2014.03.26.04.22.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:28 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 07/14] hrtimer: use base->hres_active directly instead of hrtimer_hres_active() Date: Wed, 26 Mar 2014 16:51:13 +0530 Message-Id: <66f4cd9641551d97251e89d792053fbacd4a812f.1395832156.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , retrigger_next_event() is defined within #ifdef CONFIG_HIGH_RES_TIMERS and we already have pointer to base available. So it makes more sense to simply use base->hres_active instead of doing this by calling hrtimer_hres_active(): __this_cpu_read(hrtimer_bases.hres_active) Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 32d1504..cb485b9 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -667,7 +667,7 @@ static void retrigger_next_event(void *arg) { struct hrtimer_cpu_base *base = &__get_cpu_var(hrtimer_bases); - if (!hrtimer_hres_active()) + if (!base->hres_active) return; raw_spin_lock(&base->lock);