From patchwork Mon Apr 14 16:23:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28360 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 729EC2036A for ; Mon, 14 Apr 2014 16:42:18 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 19sf18936467ykq.8 for ; Mon, 14 Apr 2014 09:42:18 -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=v2J6zA3YzFUC7cZC9z7VkQoMpJ5xQpuAZNlN+3PZjaw=; b=kTv8anbYHO7EpM/JRMWyf1fQ/F07NThyNP2RqiUJUGZ1IF+xGF8wrZodkciyk1XBZf JWR/ZPEuTQDdfNp4CBksVmbQTswKGTmKp+4UA30lnphTye08t7L2HShop2mfHd8M5gma kKrYE/uqe/++DJ4zM9DyZQRmF+smHCuS+kqr28vMbDWR7lZyR78CAEjzNurOfB3bm76C aThZ56xPBlK3u9GB84yZ8Rc6gz4FkP0QYBLSMgaUCTl0oKxxd9iF7DW4RdbTl2+aYx7c C/3DLUMWEiT8QkMQrfOLMfu9/XxjkKQDU24Qxub9SKfWefCP340GSAnlrZj4gmi2fyo/ JXbw== X-Gm-Message-State: ALoCoQnWIR+VybV+7brAobZmBbA1/poMWt5jyxDF58tvZT1f0C+rQWA5HSS2A5a7dlNPFViRf0T4 X-Received: by 10.236.127.35 with SMTP id c23mr17002026yhi.51.1397493738217; Mon, 14 Apr 2014 09:42:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.40 with SMTP id 37ls2790671qgk.32.gmail; Mon, 14 Apr 2014 09:42:18 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr1159743vcb.32.1397493738104; Mon, 14 Apr 2014 09:42:18 -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 m3si2844335vcr.23.2014.04.14.09.42.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:42:18 -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 lc6so7627617vcb.7 for ; Mon, 14 Apr 2014 09:42:18 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr31178016vdu.15.1397493737940; Mon, 14 Apr 2014 09:42:17 -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 ib8csp163989vcb; Mon, 14 Apr 2014 09:42:17 -0700 (PDT) X-Received: by 10.68.110.226 with SMTP id id2mr40065356pbb.40.1397493737226; Mon, 14 Apr 2014 09:42:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si9164518pbn.250.2014.04.14.09.42.16; Mon, 14 Apr 2014 09:42:16 -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 S1755797AbaDNQmG (ORCPT + 26 others); Mon, 14 Apr 2014 12:42:06 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:54899 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755538AbaDNQ0I (ORCPT ); Mon, 14 Apr 2014 12:26:08 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so8402257pbb.22 for ; Mon, 14 Apr 2014 09:26:08 -0700 (PDT) X-Received: by 10.66.197.201 with SMTP id iw9mr3130491pac.151.1397492767877; Mon, 14 Apr 2014 09:26:07 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id j3sm34727582pbh.38.2014.04.14.09.26.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:26:07 -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 19/38] tick-common: remove local variable 'broadcast' from tick_resume() Date: Mon, 14 Apr 2014 21:53:41 +0530 Message-Id: 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: , 'broadcast' is used just once and we can easily use tick_resume_broadcast() directly instead. Also it changes the code a bit to get rid of extra indentation level which was forcing us to break function calls into two lines. Signed-off-by: Viresh Kumar --- kernel/time/tick-common.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index 3954f4d..e1b2947 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c @@ -351,17 +351,16 @@ void tick_resume(void) { struct tick_device *td = tick_get_cpu_device(); struct clock_event_device *dev = td->evtdev; - int broadcast = tick_resume_broadcast(); clockevents_set_mode(dev, CLOCK_EVT_MODE_RESUME); - if (!broadcast) { - if (td->mode == TICKDEV_MODE_PERIODIC) - tick_setup_periodic(dev, 0); - else - tick_setup_oneshot(dev, dev->event_handler, - ktime_get()); - } + if (tick_resume_broadcast()) + return; + + if (td->mode == TICKDEV_MODE_PERIODIC) + tick_setup_periodic(dev, 0); + else + tick_setup_oneshot(dev, dev->event_handler, ktime_get()); } /**