[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150210212930.GY4166@linux.vnet.ibm.com>
Date: Tue, 10 Feb 2015 13:29:31 -0800
From: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
To: riel@...hat.com
Cc: fweisbec@...il.com, luto@...capital.net, will.deacon@....com,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
mtosatti@...hat.com, borntraeger@...ibm.com,
lcapitulino@...hat.com, pbonzini@...hat.com
Subject: Re: [PATCH 2/5] nohz: add stub context_tracking_is_enabled
On Tue, Feb 10, 2015 at 03:27:51PM -0500, riel@...hat.com wrote:
> From: Rik van Riel <riel@...hat.com>
>
> 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 <riel@...hat.com>
Reviewed-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
> ---
> 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 97a81225d037..72ab10fe1e46 100644
> --- a/include/linux/context_tracking_state.h
> +++ b/include/linux/context_tracking_state.h
> @@ -39,6 +39,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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists