From patchwork Wed Mar 26 11:21:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27109 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD33320369 for ; Wed, 26 Mar 2014 11:23:56 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf6812423obc.8 for ; Wed, 26 Mar 2014 04:23:56 -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=mp/8AxXQijOmIGevobw2ud0/xlx+giHP4JC0pPrgdew=; b=Cj9UlPnLSiTXQrOK+UHck0BOB9/9bEvh2X4HB593FEF4622tNJjkhE5tgyREReSm8g VZPXhbUpx//eHOLM59Prl4fmwmS6QpRUuCgmSqgQqVDsdsCFtFDAO4LMJGxg3RozyRYz lGvOFxakJRZgtUx9zBhR0GmwdPh2H2cju60ouAIR/gO0+SF6G19IrEBJB3wpIKR8CpdR 314iFpMQ1Q1XJqK04cdnOpO4Bwo/l6pQpdnArWLF2rdev1rsam4W2yCRD4CjgnvatQGU LWFt+p3scLd9xXZwJZ3I74fY3gcwPXvjy2bXJWrfUnzVNdUKy7hhk+gdq1/ltyamHuDU IvoQ== X-Gm-Message-State: ALoCoQknJSrcfK0LkVHF5EQ0r9e7pY8JIpyjawb2agHlKqelfnRp+rcWYdlwfel0wl8apLcTp+nC X-Received: by 10.42.235.206 with SMTP id kh14mr9736939icb.30.1395833036334; Wed, 26 Mar 2014 04:23:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.138 with SMTP id 10ls582117qgj.92.gmail; Wed, 26 Mar 2014 04:23:56 -0700 (PDT) X-Received: by 10.220.81.194 with SMTP id y2mr168560vck.29.1395833036236; Wed, 26 Mar 2014 04:23:56 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id bj3si4379380vcb.172.2014.03.26.04.23.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:23:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jw12so2162438veb.13 for ; Wed, 26 Mar 2014 04:23:56 -0700 (PDT) X-Received: by 10.52.144.80 with SMTP id sk16mr272423vdb.34.1395833036157; Wed, 26 Mar 2014 04:23:56 -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.78.9 with SMTP id i9csp38125vck; Wed, 26 Mar 2014 04:23:55 -0700 (PDT) X-Received: by 10.66.190.4 with SMTP id gm4mr3847774pac.116.1395833035249; Wed, 26 Mar 2014 04:23:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs8si13597005pad.422.2014.03.26.04.23.54; Wed, 26 Mar 2014 04:23:54 -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 S1754797AbaCZLXE (ORCPT + 26 others); Wed, 26 Mar 2014 07:23:04 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:55315 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754320AbaCZLW7 (ORCPT ); Wed, 26 Mar 2014 07:22:59 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so1211880wgg.30 for ; Wed, 26 Mar 2014 04:22:58 -0700 (PDT) X-Received: by 10.180.37.12 with SMTP id u12mr29121369wij.0.1395832978878; Wed, 26 Mar 2014 04:22:58 -0700 (PDT) Received: from localhost ([213.122.173.131]) by mx.google.com with ESMTPSA id di9sm1802383wid.6.2014.03.26.04.22.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Mar 2014 04:22:58 -0700 (PDT) From: Viresh Kumar To: tglx@linutronix.de Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, fweisbec@gmail.com, linaro-networking@linaro.org, Viresh Kumar Subject: [PATCH 12/14] hrtimer: don't emulate notifier call to initialize timer base Date: Wed, 26 Mar 2014 16:51:18 +0530 Message-Id: <7eb4d1a03031b4d873ce08e8912900d7936a3ca8.1395832156.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.182 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 f14d861..39dbdbd 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -1756,8 +1756,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);