From patchwork Mon Apr 14 16:23:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28358 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC1FB20534 for ; Mon, 14 Apr 2014 16:38:40 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf31693781yha.8 for ; Mon, 14 Apr 2014 09:38:40 -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=0UTIhWZjtNoPEyKPoqMC5R+VeA8C9qnROkk8EkJEsCE=; b=lgBk2/L6NlBxMKagcaXsacm79Gf163XeDc8a/dMX5l5CWk58Oc2ftDwz1MNtDWG5K6 5MNAtR635gpyFUCZ7zagDPCwdZA9XxzaXVh35BcxmoRGQMacMpG6aLEYHBJhrc786N/p 6o1BLR7DlF1lRqS3FXZ3KnXC5pZ6rHRq/Y/PWq5uS25bn18izBEI1yP53mJ7QvJ4aQ3L /5wNwk2Xgx2oHz5+aMrnWDoKwIXl1uH8aohsIhmJq8g9oDJmWO8+u83pGfUXC9+xgYQG nwlg//x1fMxaxY9z1jm5jjRd46oOzuVZJT/XBXPPYc+SmH8UFRRdGv0sZVpU2gMQQB0S 2v5w== X-Gm-Message-State: ALoCoQlpv7rS5U+RihukFg8zhOBbyJxM7q3TvyQE8ApQdIKQitaZANvrd7OOS7gUsMvgdTqUurkB X-Received: by 10.58.228.201 with SMTP id sk9mr21076894vec.35.1397493520498; Mon, 14 Apr 2014 09:38:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.110 with SMTP id o101ls2784081qgo.18.gmail; Mon, 14 Apr 2014 09:38:40 -0700 (PDT) X-Received: by 10.220.98.143 with SMTP id q15mr749147vcn.38.1397493520389; Mon, 14 Apr 2014 09:38:40 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id cb3si2829723vdc.185.2014.04.14.09.38.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:38:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so7615073vcb.21 for ; Mon, 14 Apr 2014 09:38:40 -0700 (PDT) X-Received: by 10.52.34.4 with SMTP id v4mr753754vdi.42.1397493520300; Mon, 14 Apr 2014 09:38:40 -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.221.72 with SMTP id ib8csp163723vcb; Mon, 14 Apr 2014 09:38:39 -0700 (PDT) X-Received: by 10.66.147.99 with SMTP id tj3mr45090002pab.47.1397493519602; Mon, 14 Apr 2014 09:38:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hu10si1204228pbc.272.2014.04.14.09.38.38; Mon, 14 Apr 2014 09:38:38 -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 S1755958AbaDNQi1 (ORCPT + 26 others); Mon, 14 Apr 2014 12:38:27 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:36709 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639AbaDNQ01 (ORCPT ); Mon, 14 Apr 2014 12:26:27 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so8330590pbb.8 for ; Mon, 14 Apr 2014 09:26:27 -0700 (PDT) X-Received: by 10.68.136.41 with SMTP id px9mr45172164pbb.14.1397492786924; Mon, 14 Apr 2014 09:26:26 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id kt8sm82531454pab.7.2014.04.14.09.26.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:26:25 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Arvind.Chauhan@arm.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 22/38] tick-sched: no need to recheck cpu_online() in can_stop_idle_tick() Date: Mon, 14 Apr 2014 21:53:44 +0530 Message-Id: <74d448a200afd0424fb185e2fb2ac5c31fd6b205.1397492345.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.176 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: , We have already checked if 'cpu' is online or not and so don't need to recheck it. Signed-off-by: Viresh Kumar --- kernel/time/tick-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 9cbba513..c81b6cf 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -716,7 +716,7 @@ static bool can_stop_idle_tick(int cpu, struct tick_sched *ts) if (need_resched()) return false; - if (unlikely(local_softirq_pending() && cpu_online(cpu))) { + if (unlikely(local_softirq_pending())) { static int ratelimit; if (ratelimit < 10 &&