aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-03 19:42:02 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-02-04 10:15:25 -0500
commit0d3adebf48406e3181ffe3c665a2fce7063812e2 (patch)
tree13b667d2d5f6f96cb20da3cb446ebfce2d07d226 /include
parent9f781be923d9c5fd53348b6444d1dd67f9175529 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/litmus.h1
1 files changed, 1 insertions, 0 deletions
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)
124 (a)->rt_param.job_params.release,\ 124 (a)->rt_param.job_params.release,\
125 (b)->rt_param.job_params.release)) 125 (b)->rt_param.job_params.release))
126 126
127void preempt_if_preemptable(struct task_struct* t, int on_cpu);
127 128
128#ifdef CONFIG_SRP 129#ifdef CONFIG_SRP
129void srp_ceiling_block(void); 130void srp_ceiling_block(void);