diff options
author | Jon Medhurst <tixy@linaro.org> | 2012-07-25 15:01:40 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-04-29 09:43:11 +0100 |
commit | 0cb6b75d8bd32750432a9c2ac544321b3fa2d894 (patch) | |
tree | a845f2aa861d34e0ea35c8ba02f7ad0c7dcaa2e7 /include | |
parent | 7fb3e6503a5a7f79c703db69d928d502ce28bd5b (diff) |
drivers: arm-spc: Add function for testing if SPC driver is loaded
To enable drivers which use SPC functions to safely exist in kernels
which are run on hardware without SPC hardware, they need a method of
detecting its presence. The new function vexpress_spc_check_loaded()
provides this.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/vexpress.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/vexpress.h b/include/linux/vexpress.h index df276d25fcf..e75f0a3c511 100644 --- a/include/linux/vexpress.h +++ b/include/linux/vexpress.h @@ -146,6 +146,7 @@ extern void vexpress_spc_adb400_pd_enable(int cluster, int enable); extern void vexpress_spc_wfi_cpureset(int cluster, int cpu, int enable); extern int vexpress_spc_wfi_cpustat(int cluster); extern void vexpress_spc_wfi_cluster_reset(int cluster, int enable); +extern bool vexpress_spc_check_loaded(void); extern void vexpress_scc_ctl_snoops(int cluster, int enable); #else static inline int vexpress_spc_get_performance(int cluster, int *perf) @@ -164,6 +165,10 @@ static inline void vexpress_spc_wfi_cpureset(int cluster, int cpu, int enable) { } static inline int vexpress_spc_wfi_cpustat(int cluster) { return 0; } static inline void vexpress_spc_wfi_cluster_reset(int cluster, int enable) { } +static inline bool vexpress_spc_check_loaded(void) +{ + return false; +} static inline void vexpress_scc_ctl_snoops(int cluster, int enable) { } #endif |