From 17642f6cca552fad1762d315b99b9b363a0ca48e Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Mon, 3 Aug 2009 01:39:02 -0600 Subject: [PATCH] OMAP: PM: warn if CONFIG_CPU_IDLE is not enabled For MPU latency constraints to work, CONFIG_CPU_IDLE must be enabled, since CPUIdle is where the constraints are evaluated. Warn during compilation if CONFIG_CPU_IDLE is not defined. Signed-off-by: Paul Walmsley --- arch/arm/mach-omap2/resource34xx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c index cd4de59cbce..ae6c6923e99 100644 --- a/arch/arm/mach-omap2/resource34xx.c +++ b/arch/arm/mach-omap2/resource34xx.c @@ -30,6 +30,10 @@ #include "cm.h" #include "cm-regbits-34xx.h" +#ifndef CONFIG_CPU_IDLE +#warning MPU latency constraints require CONFIG_CPU_IDLE to function! +#endif + /** * init_latency - Initializes the mpu/core latency resource. * @resp: Latency resource to be initalized -- 2.11.4.GIT