diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-02-03 19:42:02 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-29 17:26:19 -0400 |
commit | f3a6cb9af5cdb01f29ad32b01aa56a14f0da144e (patch) | |
tree | 89a514e925a1e6f6cb1e97c1e9a8df999a403927 /include | |
parent | fb95c290fe461de794c984bc4130741f04f9142d (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.h | 1 |
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 | ||
127 | void preempt_if_preemptable(struct task_struct* t, int on_cpu); | ||
127 | 128 | ||
128 | #ifdef CONFIG_SRP | 129 | #ifdef CONFIG_SRP |
129 | void srp_ceiling_block(void); | 130 | void srp_ceiling_block(void); |