summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Medhurst2012-05-18 03:06:15 -0500
committerJon Medhurst2012-05-18 03:06:15 -0500
commitf7e8a3d4bed65fb0fdb846f53aad7b0a763767c7 (patch)
tree06ddf5fdd7dbaf5171c648145d1a2027aaa4e18d
parent401972d0edd099668c8ea86bb6db71c4067a2dfb (diff)
downloadarm-ds5-gator-f7e8a3d4bed65fb0fdb846f53aad7b0a763767c7.tar.gz
arm-ds5-gator-f7e8a3d4bed65fb0fdb846f53aad7b0a763767c7.tar.xz
arm-ds5-gator-f7e8a3d4bed65fb0fdb846f53aad7b0a763767c7.zip
gator-driver: Revert #error about lack of CONFIG_PERF_EVENTS
Make this a #warning as in version 5.9. This lets Gator build (with much reduced functionality) on platforms which require CONFIG_PERF_EVENTS to be disabled for whatever reason. Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r--driver/gator_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/gator_main.c b/driver/gator_main.c
index 7d48812..988045f 100644
--- a/driver/gator_main.c
+++ b/driver/gator_main.c
@@ -48,9 +48,9 @@ static unsigned long gator_protocol_version = 9;
48 48
49#if (GATOR_PERF_SUPPORT) && (!(GATOR_PERF_PMU_SUPPORT)) 49#if (GATOR_PERF_SUPPORT) && (!(GATOR_PERF_PMU_SUPPORT))
50#ifndef CONFIG_PERF_EVENTS 50#ifndef CONFIG_PERF_EVENTS
51#error gator requires the kernel to have CONFIG_PERF_EVENTS defined to support pmu hardware counters 51#warning gator requires the kernel to have CONFIG_PERF_EVENTS defined to support pmu hardware counters
52#elif !defined CONFIG_HW_PERF_EVENTS 52#elif !defined CONFIG_HW_PERF_EVENTS
53#error gator requires the kernel to have CONFIG_HW_PERF_EVENTS defined to support pmu hardware counters 53#warning gator requires the kernel to have CONFIG_HW_PERF_EVENTS defined to support pmu hardware counters
54#endif 54#endif
55#endif 55#endif
56 56