From patchwork Wed Mar 26 11:21:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27104 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f69.google.com (mail-qg0-f69.google.com [209.85.192.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6197720369 for ; Wed, 26 Mar 2014 11:23:27 +0000 (UTC) Received: by mail-qg0-f69.google.com with SMTP id a108sf819923qge.8 for ; Wed, 26 Mar 2014 04:23:27 -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=mzMHnCwaABXzve+HFofXlLiO9o/3D0HVEjvNycKLyDE=; b=PRJDljwFKmh8y5WFmbk1xeXs6uK+blPyWoP3VoEuH9E0q9IlpT/jzUl99HXiEWjmGC 4PJRHSfCH3voRuIsUwpBH6tsUasEWtT8GCAKf1vmnpLGeKLN8GFT6j/vxPFplOJtA4Qj vkUdei5cICaIrAbVIB4puF9BPjh47Tf+0riVjNyVUnBnGT30Yc5IFbFucOipZBsWmj3R R6utyUvRyh8PkA8LNtW/mfSQaBJ+NVosgyp5+AtbLjfiV/5rL9jWlz4Obxq07tVj42cw ls+deXgVvVstRhzduVpdC/ADD+l56F76AXStctwHgKZ3yUw56t4XP8eoqgGbpe/r4sjh Ec3A== X-Gm-Message-State: ALoCoQkpL+keAhuSqeM/YT1xq4eScvi0hJg1oSzjqEsSzHcNR0qDyxjdAyBsWZOKDwCim4AyPVQE X-Received: by 10.236.113.43 with SMTP id z31mr14752342yhg.33.1395833007076; Wed, 26 Mar 2014 04:23:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.245 with SMTP id u108ls558642qge.79.gmail; Wed, 26 Mar 2014 04:23:27 -0700 (PDT) X-Received: by 10.220.191.134 with SMTP id dm6mr60801762vcb.16.1395833006969; Wed, 26 Mar 2014 04:23:26 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id yb7si4449738vec.109.2014.03.26.04.23.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:23:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 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.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so2096793veb.18 for ; Wed, 26 Mar 2014 04:23:26 -0700 (PDT) X-Received: by 10.221.4.66 with SMTP id ob2mr369951vcb.28.1395833006902; Wed, 26 Mar 2014 04:23:26 -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 i9csp38085vck; Wed, 26 Mar 2014 04:23:26 -0700 (PDT) X-Received: by 10.66.20.10 with SMTP id j10mr86856034pae.11.1395833005778; 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.25; Wed, 26 Mar 2014 04:23:25 -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 S1754672AbaCZLWq (ORCPT + 26 others); Wed, 26 Mar 2014 07:22:46 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:43741 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCZLWm (ORCPT ); Wed, 26 Mar 2014 07:22:42 -0400 Received: by mail-wg0-f49.google.com with SMTP id a1so1230005wgh.32 for ; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) X-Received: by 10.180.96.200 with SMTP id du8mr31041620wib.43.1395832961122; Wed, 26 Mar 2014 04:22:41 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id fb6sm1802736wib.2.2014.03.26.04.22.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:40 -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 09/14] hrtimer: don't check state of base->hres_active in hrtimer_switch_to_hres() Date: Wed, 26 Mar 2014 16:51:15 +0530 Message-Id: <7a90f7e3c9f448b23ad0888091cd56ba8e2652d3.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.128.173 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 5b3b212..e6e1255 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -685,9 +685,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()) {