From patchwork Mon Apr 14 16:23:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28368 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A88812036A for ; Mon, 14 Apr 2014 16:57:52 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id oz11sf31173422veb.5 for ; Mon, 14 Apr 2014 09:57:52 -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=eKtN0z3KUYd7w1zOf4zIexYkonRg+92mNErMh+cO3z4=; b=MuSdR71wI3W/imVvu55OCvrq2ROL/nmaMS8RAN5IuQOe2snbYnsPHQLEeC4LRcNmeJ vpsPI/KS9WYQ2GYfaOSZWbutCCfd2Yxq/LiTeDezz8c0geJXgrI7wWVchzZPKGuzIpCJ Vsd5en5Hf1GC1F3avHq2Mzv/yWrgJai60vBR6GJJ48ruSktrc8247jLq6zFWkhn8Z97h tytVH2K6PSsW4Lb7PQomL4l2+2/0cO4/WhDY46REOFtsrDNJvC2adAu3gxiVwnpfwvHS gOH2SO8LP+Ky9VU0gZwYYyERaQtqhZTPGRvYaG8Gzldr8EMOPPh6gEMqpd8ddU2bZxR/ 3/CQ== X-Gm-Message-State: ALoCoQlOzbXgy08blG9l8WqZIjRExGuTHbhX5D8rN/qiWtd2+DmIxC7pDImj/yVJL8qza4nVtvwj X-Received: by 10.236.203.113 with SMTP id e77mr18516805yho.15.1397494672433; Mon, 14 Apr 2014 09:57:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.115 with SMTP id i106ls2415332qgd.97.gmail; Mon, 14 Apr 2014 09:57:52 -0700 (PDT) X-Received: by 10.52.237.228 with SMTP id vf4mr491391vdc.47.1397494672169; Mon, 14 Apr 2014 09:57:52 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id dy7si2846877vec.126.2014.04.14.09.57.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:57:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id if17so7646436vcb.36 for ; Mon, 14 Apr 2014 09:57:52 -0700 (PDT) X-Received: by 10.52.237.228 with SMTP id vf4mr491385vdc.47.1397494672085; Mon, 14 Apr 2014 09:57:52 -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 ib8csp165134vcb; Mon, 14 Apr 2014 09:57:51 -0700 (PDT) X-Received: by 10.68.136.162 with SMTP id qb2mr45249078pbb.88.1397494671311; Mon, 14 Apr 2014 09:57:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si9199979pab.208.2014.04.14.09.57.50; Mon, 14 Apr 2014 09:57:50 -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 S1755377AbaDNQY5 (ORCPT + 26 others); Mon, 14 Apr 2014 12:24:57 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:60237 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754848AbaDNQYy (ORCPT ); Mon, 14 Apr 2014 12:24:54 -0400 Received: by mail-pb0-f42.google.com with SMTP id rr13so8509142pbb.1 for ; Mon, 14 Apr 2014 09:24:54 -0700 (PDT) X-Received: by 10.66.241.66 with SMTP id wg2mr4169454pac.132.1397492694294; Mon, 14 Apr 2014 09:24:54 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id sv10sm34675203pbc.74.2014.04.14.09.24.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:24:53 -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 07/38] tick-oneshot: drop local_irq_save/restore from tick_switch_to_oneshot() Date: Mon, 14 Apr 2014 21:53:29 +0530 Message-Id: <1bd46e057b41f48b0ec58136ee404356728e0371.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.177 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: , tick_switch_to_oneshot() is just reading value of __this_cpu_read(tick_cpu_device.mode) and doesn't need to disable local interrupts for that. Drop local_irq_save/restore calls from this routine. Signed-off-by: Viresh Kumar --- kernel/time/tick-oneshot.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/kernel/time/tick-oneshot.c b/kernel/time/tick-oneshot.c index 6a531ec..39492f1 100644 --- a/kernel/time/tick-oneshot.c +++ b/kernel/time/tick-oneshot.c @@ -92,14 +92,7 @@ int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) */ int tick_oneshot_mode_active(void) { - unsigned long flags; - int ret; - - local_irq_save(flags); - ret = tick_get_cpu_device()->mode == TICKDEV_MODE_ONESHOT; - local_irq_restore(flags); - - return ret; + return tick_get_cpu_device()->mode == TICKDEV_MODE_ONESHOT; } #ifdef CONFIG_HIGH_RES_TIMERS