From patchwork Tue Apr 8 04:57:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 27924 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A3C8120553 for ; Tue, 8 Apr 2014 04:57:53 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf1267121pdb.9 for ; Mon, 07 Apr 2014 21: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:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=5juPJmXGhtUEO1pzhTKOOidFzRHfGsBCjK+bxS2g+xI=; b=GXV1yGh54SohAMexN2HdTv3xfhKw5va4TeA6W0yPXn85rnglmnNTuQEBmB/ZFKeOAU zYogJJ+nBnMowiuYUc5HomfBhV74zLdVh3wcGXYmYOdcuSSiA4+HLM/AbzrjLKCBdcIV bpRPHZXp+rx7cudpcOFPChxemHQYQE2yb6k74ZfClTLqTZ4abOJNpIEONDLIZ+bCYGN1 qwc95cA12OFZy3yvlMIg6tYAbvChBxkgvgainInYddFrcOwWPfa27WTyOIobvuPAHvQe fIBspbx45N374j18yO7rfQaF50CId9bqwo/gqG7Yx5E4XBHgMaX05nos13qIttQEO2Za hweA== X-Gm-Message-State: ALoCoQn5wYsTbvPiRfxD7+6HSyyK36yVyl/mjQGzGJq9f5iPDxlWOy1bBwOxdfmhbaEzhMY3k3f8 X-Received: by 10.66.157.35 with SMTP id wj3mr552762pab.11.1396933072649; Mon, 07 Apr 2014 21:57:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.66 with SMTP id h60ls86266qge.54.gmail; Mon, 07 Apr 2014 21:57:52 -0700 (PDT) X-Received: by 10.52.33.136 with SMTP id r8mr1062947vdi.2.1396933072491; Mon, 07 Apr 2014 21:57:52 -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 kj3si189541vdb.69.2014.04.07.21.57.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 21:57:52 -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 jz11so322113veb.39 for ; Mon, 07 Apr 2014 21:57:52 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr997044vch.22.1396933072401; Mon, 07 Apr 2014 21: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.12.8 with SMTP id v8csp215751vcv; Mon, 7 Apr 2014 21:57:52 -0700 (PDT) X-Received: by 10.67.15.42 with SMTP id fl10mr1983241pad.30.1396933071494; Mon, 07 Apr 2014 21:57:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pc9si438667pac.312.2014.04.07.21.57.50; Mon, 07 Apr 2014 21: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 S1755061AbaDHE5m (ORCPT + 27 others); Tue, 8 Apr 2014 00:57:42 -0400 Received: from mail-ob0-f181.google.com ([209.85.214.181]:54333 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbaDHE5k (ORCPT ); Tue, 8 Apr 2014 00:57:40 -0400 Received: by mail-ob0-f181.google.com with SMTP id wp4so459946obc.12 for ; Mon, 07 Apr 2014 21:57:39 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.205.135 with SMTP id lg7mr1443077obc.32.1396933059831; Mon, 07 Apr 2014 21:57:39 -0700 (PDT) Received: by 10.182.28.168 with HTTP; Mon, 7 Apr 2014 21:57:39 -0700 (PDT) In-Reply-To: <227e5e019c175010b593d41cf1154e2e6505c22e.1396699157.git.viresh.kumar@linaro.org> References: <227e5e019c175010b593d41cf1154e2e6505c22e.1396699157.git.viresh.kumar@linaro.org> Date: Tue, 8 Apr 2014 10:27:39 +0530 Message-ID: Subject: Re: [PATCH] clocksource: register cpu notifier to remove timer from dying CPU From: Viresh Kumar To: Thomas Gleixner , John Stultz Cc: Lists linaro-kernel , Fengguang Wu , Jet Chen , Linux Kernel Mailing List , Linaro Networking , Viresh Kumar 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: , On 5 April 2014 17:33, Viresh Kumar wrote: > kernel/time/clocksource.c | 64 +++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 53 insertions(+), 11 deletions(-) > > diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c > index ba3e502..8054fb1 100644 > --- a/kernel/time/clocksource.c > +++ b/kernel/time/clocksource.c > @@ -23,16 +23,21 @@ > * o Allow clocksource drivers to be unregistered > */ > > +#include > #include > #include > #include > #include > +#include > #include /* for spin_unlock_irq() using preempt_count() m68k */ > #include > #include > > #include "tick-internal.h" > > +/* Tracks current CPU to queue watchdog timer on */ > +static int timer_cpu; > + Minor fixup, will send V2 after few days: the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 8054fb1..356c6c6 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -35,9 +35,6 @@ #include "tick-internal.h" -/* Tracks current CPU to queue watchdog timer on */ -static int timer_cpu; - void timecounter_init(struct timecounter *tc, const struct cyclecounter *cc, u64 start_tstamp) @@ -185,6 +182,9 @@ static char override_name[CS_NAME_LEN]; static int finished_booting; #ifdef CONFIG_CLOCKSOURCE_WATCHDOG +/* Tracks current CPU to queue watchdog timer on */ +static int timer_cpu; + static void clocksource_watchdog_work(struct work_struct *work); static void clocksource_select(void); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in