Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754612Ab2FMQUm (ORCPT ); Wed, 13 Jun 2012 12:20:42 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:40424 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754225Ab2FMQUM (ORCPT ); Wed, 13 Jun 2012 12:20:12 -0400 From: Frederic Weisbecker To: Ingo Molnar , Thomas Gleixner Cc: LKML , Frederic Weisbecker , Alessio Igor Bogani , Andrew Morton , Avi Kivity , Chris Metcalf , Christoph Lameter , Daniel Lezcano , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Kevin Hilman , Max Krasnyansky , "Paul E. McKenney" , Peter Zijlstra , Stephen Hemminger , Steven Rostedt , Sven-Thorsten Dietrich Subject: [PATCH 2/7] nohz: Introduce adaptive nohz config Date: Wed, 13 Jun 2012 18:19:52 +0200 Message-Id: <1339604397-8758-3-git-send-email-fweisbec@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1339604397-8758-1-git-send-email-fweisbec@gmail.com> References: <1339604397-8758-1-git-send-email-fweisbec@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2521 Lines: 73 Prepare a config option for the full adaptive nohz feature. This way we can start to put the related code under appropriate ifdefs. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Daniel Lezcano Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan Akkan Cc: Ingo Molnar Cc: Kevin Hilman Cc: Max Krasnyansky Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Stephen Hemminger Cc: Steven Rostedt Cc: Sven-Thorsten Dietrich Cc: Thomas Gleixner --- arch/Kconfig | 8 ++++++++ kernel/time/Kconfig | 7 +++++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 8c3d957..a71c698 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -251,6 +251,14 @@ config HAVE_CMPXCHG_DOUBLE config ARCH_WANT_OLD_COMPAT_IPC bool +config HAVE_NO_HZ_FULL + bool + help + An arch should select this symbols if it provides + the kernel entry/exit hooks necessary to implement + full tickless support. This includes syscall entry/exit, + exceptions entry/exit and do_notify_resume() hooks. + config HAVE_ARCH_SECCOMP_FILTER bool help diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig index 0883fa1..5ac4b74 100644 --- a/kernel/time/Kconfig +++ b/kernel/time/Kconfig @@ -65,6 +65,13 @@ config NO_HZ This option enables a tickless idle system: timer interrupts will only trigger on an as-needed basis when the system is idle. +config NO_HZ_FULL + bool "Full tickless system (Dynamic Ticks)" + depends on NO_HZ && HAVE_NO_HZ_FULL + help + This option enables a full adaptive tickless system: timer + interrupts will globally only trigger on an as-needed basis. + config HIGH_RES_TIMERS bool "High Resolution Timer Support" depends on !ARCH_USES_GETTIMEOFFSET && GENERIC_CLOCKEVENTS -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in 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/