From 5fe94ab5537254b8173e59015315198245eb22fe Mon Sep 17 00:00:00 2001 From: Tuukka Toivonen Date: Thu, 24 May 2012 18:28:15 +0300 Subject: [PATCH] atomisp: [REVERTME] request minimum CPU wakeup latency BZ: 34648 CLV+ drivers put idle system into a low-performance mode which causes ISP interrupts to disappear. This leads to ISP timeout errors under light load. Fix the issue by requesting lowest wakeup latency from pm_qos subsystem. This is a temporary solution; the root cause should be still investigated. Signed-off-by: Tuukka Toivonen Change-Id: I32f58c60ae2c65bc44c4e7e1c4b958fe9022f1b7 Reviewed-on: http://android.intel.com:8080/49249 Reviewed-by: Gross, Mark Reviewed-by: Laakso, Antti Reviewed-by: Kontola, Kalervo Tested-by: Koski, Anttu Reviewed-by: Koskinen, Ilkka Reviewed-by: buildbot Tested-by: buildbot --- drivers/media/video/atomisp/include/atomisp/atomisp_internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/video/atomisp/include/atomisp/atomisp_internal.h b/drivers/media/video/atomisp/include/atomisp/atomisp_internal.h index 3bb859c..9219a85 100644 --- a/drivers/media/video/atomisp/include/atomisp/atomisp_internal.h +++ b/drivers/media/video/atomisp/include/atomisp/atomisp_internal.h @@ -23,6 +23,10 @@ #ifndef ATOMISP_INTERNAL_H_ #define ATOMISP_INTERNAL_H_ +#ifdef CONFIG_BOARD_CTP +#include +#endif + #include #include #include @@ -93,7 +97,11 @@ * 1000 us is a reasonable value considering that the processing * time is typically ~2000 us. */ +#ifdef CONFIG_BOARD_CTP +#define ATOMISP_MAX_ISR_LATENCY CSTATE_EXIT_LATENCY_C1 +#else #define ATOMISP_MAX_ISR_LATENCY 1000 +#endif int atomisp_video_init(struct atomisp_video_pipe *video, const char *name); void atomisp_video_unregister(struct atomisp_video_pipe *video); -- 2.7.4