[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1423167832-17609-6-git-send-email-riel@redhat.com>
Date: Thu, 5 Feb 2015 15:23:52 -0500
From: riel@...hat.com
To: kvm@...r.kernel.org
Cc: borntraeger@...ibm.com, linux-kernel@...r.kernel.org,
mtosatti@...hat.com, mingo@...nel.orgm, ak@...ux.intel.com,
oleg@...hat.com, masami.hiramatsu.pt@...achi.com,
fweisbec@...il.com, paulmck@...ux.vnet.ibm.com,
lcapitulino@...hat.com, pbonzini@...hat.com
Subject: [PATCH 5/5] nohz: add stub context_tracking_is_enabled
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>
---
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@...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