From patchwork Mon Apr 21 09:55:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28676 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B67632032B for ; Mon, 21 Apr 2014 09:57:03 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf18435076pbb.5 for ; Mon, 21 Apr 2014 02:57:03 -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=zrn+PlV/4zmc0BT0qiApBEzbFEPNY5xOP2+VMyWQ0pw=; b=b3eSuNGUt4Df4JXf4KzngtoiriL4P0D8NJA6Uz6z/FgY+B2Yuiw4vwjZXYq+3tZbH6 QXoCFjGqHrwDglFIm04LGPBXWvOEeCVmGWIqsmpYOr8SGm133cqQfFfKmjGGUh7Zb4se Z2KHHTk6TQan9ztKYvqgOIkMOkhgummMm5O9AG3lHwSQ4T9SzqQN9MAy68ZgFrezhj+1 tKxTM5vd5IellZEH1/+MqyCdf1CFxnWeu4QREk+FixJWMAT7hGjvVG7dmeJ3JmST0Ai/ 25fk2/vNHzine7VGv6QCH7gw/gSdb3RSyLD+GjL3L68BycWURi3OWbDiX+IHfpOf6jjm RU/g== X-Gm-Message-State: ALoCoQko5Lz8WiBYgJFns4mm3eROa9BHgwJEwBnKR+Oj3mVONFOAE38h4TZBOqjaEZ++V3DC65ig X-Received: by 10.68.180.132 with SMTP id do4mr2028991pbc.4.1398074222954; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.232 with SMTP id 95ls2325102qgp.68.gmail; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr703191vcn.26.1398074222805; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id dm2si6183899vec.111.2014.04.21.02.57.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:57:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id jy13so7843811veb.30 for ; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr1242741vcb.24.1398074222697; Mon, 21 Apr 2014 02:57:02 -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 ib8csp280276vcb; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) X-Received: by 10.68.226.197 with SMTP id ru5mr37008528pbc.77.1398074222005; Mon, 21 Apr 2014 02:57:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id eg2si20547193pac.387.2014.04.21.02.57.01; Mon, 21 Apr 2014 02:57:01 -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 S1751991AbaDUJ4n (ORCPT + 26 others); Mon, 21 Apr 2014 05:56:43 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:51677 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbaDUJ4e (ORCPT ); Mon, 21 Apr 2014 05:56:34 -0400 Received: by mail-wi0-f171.google.com with SMTP id q5so1624216wiv.10 for ; Mon, 21 Apr 2014 02:56:33 -0700 (PDT) X-Received: by 10.194.63.196 with SMTP id i4mr1419707wjs.50.1398074193785; Mon, 21 Apr 2014 02:56:33 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id mw3sm15226170wic.7.2014.04.21.02.56.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 21 Apr 2014 02:56:33 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linaro-networking@linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, Viresh Kumar Subject: [PATCH V2 12/19] tick-common: don't pass 'cpu' & 'cpumask' to tick_setup_device() Date: Mon, 21 Apr 2014 15:25:08 +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.128.171 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_setup_device() is always passed cpumask of 'cpu' and 'cpu' is always obtained from smp_processor_id(). Remove these two parameters and obtain them in tick_setup_device() instead. Signed-off-by: Viresh Kumar --- kernel/time/tick-common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index 896c992..85ee9fd 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c @@ -145,9 +145,10 @@ void tick_setup_periodic(struct clock_event_device *dev, int broadcast) * Setup the tick device */ static void tick_setup_device(struct tick_device *td, - struct clock_event_device *newdev, int cpu, - const struct cpumask *cpumask) + struct clock_event_device *newdev) { + int cpu = smp_processor_id(); + const struct cpumask *cpumask = cpumask_of(cpu); ktime_t next_event; void (*handler)(struct clock_event_device *) = NULL; @@ -206,10 +207,9 @@ static void tick_setup_device(struct tick_device *td, void tick_install_replacement(struct clock_event_device *newdev) { struct tick_device *td = tick_get_cpu_device(); - int cpu = smp_processor_id(); clockevents_exchange_device(td->evtdev, newdev); - tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); + tick_setup_device(td, newdev); if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_oneshot_notify(); } @@ -287,7 +287,7 @@ void tick_check_new_device(struct clock_event_device *newdev) curdev = NULL; } clockevents_exchange_device(curdev, newdev); - tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); + tick_setup_device(td, newdev); if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_oneshot_notify(); return;