Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754446AbbBEX4t (ORCPT ); Thu, 5 Feb 2015 18:56:49 -0500 Received: from e35.co.us.ibm.com ([32.97.110.153]:42132 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754393AbbBEX4r (ORCPT ); Thu, 5 Feb 2015 18:56:47 -0500 Date: Thu, 5 Feb 2015 15:56:41 -0800 From: "Paul E. McKenney" To: riel@redhat.com Cc: kvm@vger.kernel.org, borntraeger@de.ibm.com, linux-kernel@vger.kernel.org, mtosatti@redhat.com, mingo@kernel.orgm, ak@linux.intel.com, oleg@redhat.com, masami.hiramatsu.pt@hitachi.com, fweisbec@gmail.com, lcapitulino@redhat.com, pbonzini@redhat.com Subject: Re: [PATCH 5/5] nohz: add stub context_tracking_is_enabled Message-ID: <20150205235641.GT5370@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <1423167832-17609-1-git-send-email-riel@redhat.com> <1423167832-17609-6-git-send-email-riel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423167832-17609-6-git-send-email-riel@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15020523-0013-0000-0000-00000883BACC Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1443 Lines: 38 On Thu, Feb 05, 2015 at 03:23:52PM -0500, riel@redhat.com wrote: > From: Rik van Riel > > With code elsewhere doing something conditional on whether or not > context tracking is enabled, we want a stub function that tells us > context tracking is not enabled, when CONFIG_CONTEXT_TRACKING is > not set. > > Signed-off-by: Rik van Riel Acked-by: Paul E. McKenney > --- > include/linux/context_tracking_state.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/context_tracking_state.h b/include/linux/context_tracking_state.h > index f3ef027af749..90a7bab8779e 100644 > --- a/include/linux/context_tracking_state.h > +++ b/include/linux/context_tracking_state.h > @@ -40,6 +40,8 @@ static inline bool context_tracking_in_user(void) > #else > static inline bool context_tracking_in_user(void) { return false; } > static inline bool context_tracking_active(void) { return false; } > +static inline bool context_tracking_is_enabled(void) { return false; } > +static inline bool context_tracking_cpu_is_enabled(void) { return false; } > #endif /* CONFIG_CONTEXT_TRACKING */ > > #endif > -- > 1.9.3 > -- 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/