From patchwork Fri Apr 4 06:35:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27765 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 385262036E for ; Fri, 4 Apr 2014 06:49:46 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf7554541qcx.6 for ; Thu, 03 Apr 2014 23:49:45 -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=R1DdbaNJGhtOZpq33SqSwrAW6+ldBcQndm+yjkhb3ks=; b=jLIEo7Dfvg17BtAWoaqEF0s0KXyR+pA3mHv82sNLpu8rnb5JHepfQpHwOg8TqHOcbQ L/7EZpxnVZ00djU+SODQ3Iiq0Oq/6Nhs/LnFxSU/l9DajmoHdzb0Z+Wnb6nc73VDSZZD kobuNIiWwxkuNwlqT0ce1fToZfOn9BTIzuDLwD4XQ4S0d5mRx26w0oxTBlc7eOkCpsOu N2NRimJP5wlEXd56lMY9apj5pbD2srt6xlTKThNrQJ1spmnQjrlg0Fepc9ZKSFC+hwRA helBYhrfUGNFEE2bRbrjSv4V2hbSSnuzLDsbQLwgrLBF9DMMSyaCB7DxH1oqZhaMHFkM r2vw== X-Gm-Message-State: ALoCoQl+Uu1grwbroSNQNQ4iFvO1S4fKPaAHk2GgqiAP4jvz/3R46OKtNiAYnGWsw6SScNdKZ08y X-Received: by 10.236.99.20 with SMTP id w20mr6146552yhf.50.1396594185929; Thu, 03 Apr 2014 23:49:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.132 with SMTP id k4ls935686qge.42.gmail; Thu, 03 Apr 2014 23:49:45 -0700 (PDT) X-Received: by 10.58.1.5 with SMTP id 5mr3704651vei.8.1396594185813; Thu, 03 Apr 2014 23:49:45 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id z6si1637025vcm.117.2014.04.03.23.49.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:49:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so2860503vcb.11 for ; Thu, 03 Apr 2014 23:49:45 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr6843359vcx.7.1396594185667; Thu, 03 Apr 2014 23:49:45 -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.12.8 with SMTP id v8csp89676vcv; Thu, 3 Apr 2014 23:49:45 -0700 (PDT) X-Received: by 10.66.136.131 with SMTP id qa3mr12692225pab.77.1396594184723; Thu, 03 Apr 2014 23:49:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk5si4210447pbc.37.2014.04.03.23.49.44; Thu, 03 Apr 2014 23:49:44 -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 S1752881AbaDDGti (ORCPT + 27 others); Fri, 4 Apr 2014 02:49:38 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:49289 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbaDDGlQ (ORCPT ); Fri, 4 Apr 2014 02:41:16 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so591045wib.14 for ; Thu, 03 Apr 2014 23:41:15 -0700 (PDT) X-Received: by 10.180.106.167 with SMTP id gv7mr1826487wib.40.1396593675017; Thu, 03 Apr 2014 23:41:15 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id eq8sm2694762wib.16.2014.04.03.23.41.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:41:14 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, fweisbec@gmail.com, linaro-networking@linaro.org, Arvind.Chauhan@arm.com, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH V2 15/36] hrtimer: don't emulate notifier call to initialize timer base Date: Fri, 4 Apr 2014 12:05:58 +0530 Message-Id: <2af2580fcd9edf7faacfd33bdfdda79feb64384e.1396592516.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.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: , In hrtimers_init() we need to call init_hrtimers_cpu() for boot cpu. For this, currently we are emulating a call to hotplug notifier. Probably this was done initially to get rid of code redundancy. But this sequence always called a single routine, i.e. init_hrtimers_cpu(), and so calling that routine directly would be better. This would get rid of emulating a notifier call, few typecasts and the extra steps we are doing in notifier callback. So, this patch calls init_hrtimers_cpu() directly from hrtimers_init(). Signed-off-by: Viresh Kumar --- kernel/hrtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 833db9f..5b0cbe7 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -1753,8 +1753,7 @@ static struct notifier_block hrtimers_nb = { void __init hrtimers_init(void) { - hrtimer_cpu_notify(&hrtimers_nb, (unsigned long)CPU_UP_PREPARE, - (void *)(long)smp_processor_id()); + init_hrtimers_cpu(smp_processor_id()); register_cpu_notifier(&hrtimers_nb); #ifdef CONFIG_HIGH_RES_TIMERS open_softirq(HRTIMER_SOFTIRQ, run_hrtimer_softirq);