From patchwork Mon Apr 14 16:23:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 28361 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71D4C2036A for ; Mon, 14 Apr 2014 16:43:06 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf32810784pab.5 for ; Mon, 14 Apr 2014 09:43:05 -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=Msc2Kt31bjPx7KdIu/NY/vnG6nIXBEPaBvCsaVZ6R+Y=; b=OxQ2jnADWjmMoOUSeLqVwdQrkGCgk2S1NCv8IRNmXyUtPEgnfY4iRuq+d36Gp6sMX9 m13KaHJRxxUC/i65YVfagapMMZqK1H2277oOUQa2xpN6P6hH0Gz048bsUVITPsTkgv+t EKZ01wyQQjnhaRcggzRDeWcYaOPIm8VquY1AiOaHd52Jpsq+dEMWq2KodLJLv3UoaKhh weDBl9hFvg5ZPC6sIiDSg+h4wOiJOtKXfOUCt+4Ajelf3W7FVimBXj6dwWRSMbYd3JRr lKA32n3Np2tIMgJtYxXaLdDTJyy4ZbCSvTQ061Ree9CcPA2V+ywEx7EbBtOsb+Yi2qJM nIgg== X-Gm-Message-State: ALoCoQlZpE5cwGC1oVtpetpvH1dmiRP5oFrPBGJtEd449ezOsKxydNrPMcYifKgc7JAy63hfO5iD X-Received: by 10.66.149.67 with SMTP id ty3mr19975838pab.27.1397493785642; Mon, 14 Apr 2014 09:43:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.197 with SMTP id m63ls2715912qga.58.gmail; Mon, 14 Apr 2014 09:43:05 -0700 (PDT) X-Received: by 10.220.49.8 with SMTP id t8mr314874vcf.41.1397493785400; Mon, 14 Apr 2014 09:43:05 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id od9si2842880vcb.65.2014.04.14.09.43.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:43:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 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.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so7934228veb.11 for ; Mon, 14 Apr 2014 09:43:05 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr31180513vdu.15.1397493785296; Mon, 14 Apr 2014 09:43:05 -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 ib8csp164067vcb; Mon, 14 Apr 2014 09:43:04 -0700 (PDT) X-Received: by 10.68.125.164 with SMTP id mr4mr44757388pbb.27.1397493784591; Mon, 14 Apr 2014 09:43:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xf3si5923354pab.466.2014.04.14.09.43.03; Mon, 14 Apr 2014 09:43:04 -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 S1755500AbaDNQZ4 (ORCPT + 26 others); Mon, 14 Apr 2014 12:25:56 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:40846 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754888AbaDNQZu (ORCPT ); Mon, 14 Apr 2014 12:25:50 -0400 Received: by mail-pd0-f182.google.com with SMTP id y10so8302391pdj.27 for ; Mon, 14 Apr 2014 09:25:49 -0700 (PDT) X-Received: by 10.68.227.4 with SMTP id rw4mr23687111pbc.3.1397492749840; Mon, 14 Apr 2014 09:25:49 -0700 (PDT) Received: from localhost ([122.167.126.16]) by mx.google.com with ESMTPSA id ac5sm34723551pbc.37.2014.04.14.09.25.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:25:49 -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 16/38] tick-common: don't pass cpumask to tick_setup_device() Date: Mon, 14 Apr 2014 21:53:38 +0530 Message-Id: <41103d439bc01caa70bab32b3d1e84f48ef000f7.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.128.180 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', which is also passed as parameter to this routine. So, just calculate the cpumask(cpu) in tick_setup_device() instead of passing from every caller. Signed-off-by: Viresh Kumar --- kernel/time/tick-common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index c1b3619..c2aa441 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c @@ -145,9 +145,9 @@ 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) { + const struct cpumask *cpumask = cpumask_of(cpu); ktime_t next_event; void (*handler)(struct clock_event_device *) = NULL; @@ -209,7 +209,7 @@ void tick_install_replacement(struct clock_event_device *newdev) 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, cpu); if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_oneshot_notify(); } @@ -293,7 +293,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, cpu); if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_oneshot_notify(); return;