From f3a6cb9af5cdb01f29ad32b01aa56a14f0da144e Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Wed, 3 Feb 2010 19:42:02 -0500 Subject: Introduce generic NP-section aware preemption function Dealing with preemptions across CPUs in the presence of non-preemptive sections can be tricky and should not be replicated across (event-driven) plugins. This patch introduces a generic preemption function that handles non-preemptive sections (hopefully) correctly. --- include/litmus/litmus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/litmus') diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index faaf83961dfa..62107e659c12 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h @@ -124,6 +124,7 @@ static inline lt_t litmus_clock(void) (a)->rt_param.job_params.release,\ (b)->rt_param.job_params.release)) +void preempt_if_preemptable(struct task_struct* t, int on_cpu); #ifdef CONFIG_SRP void srp_ceiling_block(void); -- cgit v1.2.2