aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/bL_switcher.h
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2015-01-13 08:54:00 +0000
committerJon Medhurst <tixy@linaro.org>2015-01-13 08:54:00 +0000
commit54ad77132973b91081d7c6d83cc019ae7a6eb4c0 (patch)
tree74772269fe42ab3cb06e1a60c9003df556205a13 /arch/arm64/include/asm/bL_switcher.h
parent4570b3bd59cb0793d01a2249c31eccd35049dbb8 (diff)
parent5338f9876b1ecfd4cb43181a948c2ad9474fb4be (diff)
Merge branch 'tracking-armlt-juno-cpufreq' into integration-linaro-vexpress64tracking-integration-linaro-vexpress-ll-20150113.0
Diffstat (limited to 'arch/arm64/include/asm/bL_switcher.h')
-rw-r--r--arch/arm64/include/asm/bL_switcher.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/bL_switcher.h b/arch/arm64/include/asm/bL_switcher.h
new file mode 100644
index 000000000000..2bee500b7f54
--- /dev/null
+++ b/arch/arm64/include/asm/bL_switcher.h
@@ -0,0 +1,54 @@
+/*
+ * Based on the stubs for the ARM implementation which is:
+ *
+ * Created by: Nicolas Pitre, April 2012
+ * Copyright: (C) 2012-2013 Linaro Limited
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef ASM_BL_SWITCHER_H
+#define ASM_BL_SWITCHER_H
+
+#include <linux/notifier.h>
+#include <linux/types.h>
+
+typedef void (*bL_switch_completion_handler)(void *cookie);
+
+static inline int bL_switch_request(unsigned int cpu,
+ unsigned int new_cluster_id)
+{
+ return -ENOTSUPP;
+}
+
+/*
+ * Register here to be notified about runtime enabling/disabling of
+ * the switcher.
+ *
+ * The notifier chain is called with the switcher activation lock held:
+ * the switcher will not be enabled or disabled during callbacks.
+ * Callbacks must not call bL_switcher_{get,put}_enabled().
+ */
+#define BL_NOTIFY_PRE_ENABLE 0
+#define BL_NOTIFY_POST_ENABLE 1
+#define BL_NOTIFY_PRE_DISABLE 2
+#define BL_NOTIFY_POST_DISABLE 3
+
+static inline int bL_switcher_register_notifier(struct notifier_block *nb)
+{
+ return 0;
+}
+
+static inline int bL_switcher_unregister_notifier(struct notifier_block *nb)
+{
+ return 0;
+}
+
+static inline bool bL_switcher_get_enabled(void) { return false; }
+static inline void bL_switcher_put_enabled(void) { }
+static inline int bL_switcher_trace_trigger(void) { return 0; }
+static inline int bL_switcher_get_logical_index(u32 mpidr) { return -EUNATCH; }
+
+#endif