Message ID | 1408727373-8166-3-git-send-email-frederic@kernel.org |
---|---|
State | Accepted |
Commit | 2a16fc93d2c9568e16d45db77c7b5f15e1921cf1 |
Headers | show
Return-Path: <patchwork-forward+bncBDGMTQMEUYHBB3HS3WPQKGQEGEKUD6Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD7E520540 for <linaro@patches.linaro.org>; Fri, 22 Aug 2014 17:10:04 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id r2sf49158888igi.0 for <linaro@patches.linaro.org>; Fri, 22 Aug 2014 10:10:04 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=V3+PEezjVgx9+4UmkkYJqmsjZbNUGx5A0TextneU6gI=; b=LcQ1DxgyH95xfvZDS3SicRda9Bs4BQXi+utG8oJRnNYTX+vEi84u+tEljPNLARHfQJ ViG1hUddc78DynSJSV85k2Z+xEueG5IwqM+BFeuoo/Fm16gCVcwbHl71CDKPS7kJiYPL m70HHV+i4K1xgOn4WU5MYPnQXDcDWIZsfhrYR8TMR+/MdEqypUCjSQ84oTzoD/kHEvPL ubjFkXD30oaKRgsRfePRKcp8Ya6wxh8CPFI8rip156nkvd9GnW2Z9cKxzn4xgct4DkWn EXVIsUBQ5eQPLVQwQeXxDEKG9hqfMsEALJHzGLrAhywqrgB3k3BeodLEuFaWCzBCqOr9 /cVw== X-Gm-Message-State: ALoCoQkApzqZhNFV1VGqawCYIl5uRNy5hb8I8gAhRocC1BOZuiJ6bs4hvQF1h+tlwR+uWqqJxO4W X-Received: by 10.42.133.200 with SMTP id i8mr6841003ict.14.1408727404430; Fri, 22 Aug 2014 10:10:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.202 with SMTP id k68ls1344531qge.48.gmail; Fri, 22 Aug 2014 10:10:04 -0700 (PDT) X-Received: by 10.220.86.72 with SMTP id r8mr1147247vcl.36.1408727404278; Fri, 22 Aug 2014 10:10:04 -0700 (PDT) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [2607:f8b0:400c:c03::22e]) by mx.google.com with ESMTPS id hn5si14014051vdb.51.2014.08.22.10.10.04 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Aug 2014 10:10:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22e as permitted sender) client-ip=2607:f8b0:400c:c03::22e; Received: by mail-vc0-f174.google.com with SMTP id la4so12601630vcb.19 for <patchwork-forward@linaro.org>; Fri, 22 Aug 2014 10:10:04 -0700 (PDT) X-Received: by 10.53.12.225 with SMTP id et1mr3903899vdd.5.1408727404202; Fri, 22 Aug 2014 10:10:04 -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.221.45.67 with SMTP id uj3csp32525vcb; Fri, 22 Aug 2014 10:10:03 -0700 (PDT) X-Received: by 10.68.252.229 with SMTP id zv5mr8303891pbc.16.1408727403270; Fri, 22 Aug 2014 10:10:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pb7si1797342pdb.225.2014.08.22.10.10.02 for <multiple recipients>; Fri, 22 Aug 2014 10:10:03 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932699AbaHVRJv (ORCPT <rfc822;yazen.ghannam@linaro.org> + 21 others); Fri, 22 Aug 2014 13:09:51 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:42230 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297AbaHVRJo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Aug 2014 13:09:44 -0400 Received: by mail-we0-f172.google.com with SMTP id x48so10958554wes.3 for <linux-kernel@vger.kernel.org>; Fri, 22 Aug 2014 10:09:42 -0700 (PDT) X-Received: by 10.194.206.67 with SMTP id lm3mr6700014wjc.70.1408727382860; Fri, 22 Aug 2014 10:09:42 -0700 (PDT) Received: from localhost.localdomain (4be54-h03-87-88-245-150.dsl.sta.abo.bbox.fr. [87.88.245.150]) by mx.google.com with ESMTPSA id lj18sm33116834wic.8.2014.08.22.10.09.40 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Aug 2014 10:09:42 -0700 (PDT) From: Frederic Weisbecker <fweisbec@gmail.com> To: Ingo Molnar <mingo@kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Viresh Kumar <viresh.kumar@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Frederic Weisbecker <fweisbec@gmail.com> Subject: [PATCH 2/2] nohz: Avoid tick's double reprogramming in highres mode Date: Fri, 22 Aug 2014 19:09:33 +0200 Message-Id: <1408727373-8166-3-git-send-email-frederic@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1408727373-8166-1-git-send-email-frederic@kernel.org> References: <1408727373-8166-1-git-send-email-frederic@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: fweisbec@gmail.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22e as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 153870a..cc0a5b6 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1099,6 +1099,10 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer) if (regs) tick_sched_handle(ts, regs); + /* No need to reprogram if we are in idle or full dynticks mode */ + if (unlikely(ts->tick_stopped)) + return HRTIMER_NORESTART; + hrtimer_forward(timer, now, tick_period); return HRTIMER_RESTART;