summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Balagopalakrishnan <anandb@ti.com>2015-03-23 10:37:02 +0300
committerAnand Balagopalakrishnan <anandb@ti.com>2015-03-23 10:37:02 +0300
commit872aa64b227cadbc97755a4192919dd5ca637971 (patch)
treeb62c529bff94ae54261e9f1a3066ee7c9fdf0268
parent0f3561a47cf7a1b968fb64446a0be10abc9a15d5 (diff)
downloadomap5-sgx-ddk-linux-872aa64b227cadbc97755a4192919dd5ca637971.tar.xz
Enable voluntary kernel preemption option in the SGX driver
SGX driver uses work queues which requires full kernel preemption. Allow SGX driver to be built with voluntary kernel preemption. Note that kernel scheduling with voluntary preemption is substantially different from full kernel preemption. Selection of preemption mode must be done by the system integrator based on the required use cases. Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
-rw-r--r--eurasia_km/services4/srvkm/env/linux/osfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eurasia_km/services4/srvkm/env/linux/osfunc.c b/eurasia_km/services4/srvkm/env/linux/osfunc.c
index f2e0792..aa07218 100644
--- a/eurasia_km/services4/srvkm/env/linux/osfunc.c
+++ b/eurasia_km/services4/srvkm/env/linux/osfunc.c
@@ -105,7 +105,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ON_EACH_CPU(func, info, wait) on_each_cpu(func, info, 0, wait)
#endif
-#if defined(PVR_LINUX_USING_WORKQUEUES) && !defined(CONFIG_PREEMPT)
+#if defined(PVR_LINUX_USING_WORKQUEUES) && !defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_VOLUNTARY)
/*
* Services spins at certain points waiting for events (e.g. swap
* chain destrucion). If those events rely on workqueues running,