From patchwork Fri Apr 4 06:35:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27742 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA38C2036E for ; Fri, 4 Apr 2014 06:42:30 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id i17sf7551502qcy.11 for ; Thu, 03 Apr 2014 23:42:30 -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=QmcUT0Nz4etynKjPqL897YqFeemQy/Coa0+FVZv2utU=; b=fcw+ckHyysRQAHZY+dUqUwNvWMN1kLsyrZs7kczpn1bL2DpF/rLgr+27gHK+5HlHDS zkd6TueqbiVGh8yB8b/wDRUITdoIGRBRiqsn9W3Y3wVHuRZImNj/F6QWzqTqYYbQ/g5r oUY7ZbXB58aOwZ9o7fcenx0yRkSpc1QN40cXKEAn9oQlYRYDItOgAaXNVZq8NKXliaEA umR0S6KylDPw6njsrE0bkowOaOK/Y5OKmArx2vN9rELJkOJWFQAfmyhoawI6n8+A4nUL J9JY0oqADsxsyzdoIbx5e3j61qWTkHY3/ew0w/alePFe3e+MwiMiHO7rAOIFYJ2SCSXZ KYJg== X-Gm-Message-State: ALoCoQndMH6X4H4p8a1QEtOvcDnptEKL81fqi5GiSyzjLpN/8NmVqckZFgjfQwroZD4BN4W6vo84 X-Received: by 10.236.94.238 with SMTP id n74mr5580819yhf.27.1396593750763; Thu, 03 Apr 2014 23:42:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.72 with SMTP id f66ls916877qga.47.gmail; Thu, 03 Apr 2014 23:42:30 -0700 (PDT) X-Received: by 10.52.12.36 with SMTP id v4mr10125968vdb.20.1396593750684; Thu, 03 Apr 2014 23:42:30 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id e9si1633594vct.142.2014.04.03.23.42.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:42:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id jw12so1136133veb.9 for ; Thu, 03 Apr 2014 23:42:30 -0700 (PDT) X-Received: by 10.58.31.136 with SMTP id a8mr3741804vei.20.1396593750600; Thu, 03 Apr 2014 23:42:30 -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.12.8 with SMTP id v8csp89275vcv; Thu, 3 Apr 2014 23:42:30 -0700 (PDT) X-Received: by 10.68.99.194 with SMTP id es2mr12959499pbb.100.1396593749225; Thu, 03 Apr 2014 23:42:29 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xt7si4198997pab.20.2014.04.03.23.42.28; Thu, 03 Apr 2014 23:42:28 -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 S1752555AbaDDGlW (ORCPT + 27 others); Fri, 4 Apr 2014 02:41:22 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:63956 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752374AbaDDGlE (ORCPT ); Fri, 4 Apr 2014 02:41:04 -0400 Received: by mail-wi0-f180.google.com with SMTP id q5so596552wiv.7 for ; Thu, 03 Apr 2014 23:41:03 -0700 (PDT) X-Received: by 10.180.12.14 with SMTP id u14mr1894733wib.0.1396593663323; Thu, 03 Apr 2014 23:41:03 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id l12sm11004010wjr.35.2014.04.03.23.41.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:41:02 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, fweisbec@gmail.com, linaro-networking@linaro.org, Arvind.Chauhan@arm.com, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH V2 13/36] hrtimer: don't check state of base->hres_active in hrtimer_switch_to_hres() Date: Fri, 4 Apr 2014 12:05:56 +0530 Message-Id: <2e8b55ff1b131d924d8ede95ac1bccdba24c5ba0.1396592516.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.128.178 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: , Caller of hrtimer_switch_to_hres(), i.e. hrtimer_run_pending(), has already verified this by calling hrtimer_hres_active() and so we don't need to do it again in hrtimer_switch_to_hres(). Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index ad5b7ba..476ad5d 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -690,9 +690,6 @@ static int hrtimer_switch_to_hres(void) struct hrtimer_cpu_base *base = &per_cpu(hrtimer_bases, cpu); unsigned long flags; - if (base->hres_active) - return 1; - local_irq_save(flags); if (tick_init_highres()) {