aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <ztong@cs.unc.edu>2019-01-09 17:37:55 -0500
committerpeter <ztong@cs.unc.edu>2019-01-09 17:37:55 -0500
commitca5c85ff6637f119186b69632d99940dad66afa6 (patch)
tree1eeac0bef6ac6f168a19c8f1a4a6225b613b21f1
parent13694d9feb14476f517cd94cebf66cb4d6a9d1fe (diff)
fix3
-rw-r--r--litmus/sched_edfsc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/litmus/sched_edfsc.c b/litmus/sched_edfsc.c
index 1c12a91c7959..71f53f62c584 100644
--- a/litmus/sched_edfsc.c
+++ b/litmus/sched_edfsc.c
@@ -18,9 +18,6 @@ typedef struct {
18 18
19DEFINE_PER_CPU(cpu_entry_t, edfsc_cpu_state); 19DEFINE_PER_CPU(cpu_entry_t, edfsc_cpu_state);
20 20
21#define cpu_state_for(cpu_id) (&per_cpu(cpu_entry_t, cpu_id))
22#define local_cpu_state() (this_cpu_ptr(&cpu_entry_t))
23
24static struct task_struct* edfsc_schedule(struct task_struct * prev) { 21static struct task_struct* edfsc_schedule(struct task_struct * prev) {
25 return NULL; 22 return NULL;
26} 23}
@@ -43,7 +40,7 @@ static int __init init_edfsc(void){
43 40
44 for_each_online_cpu(cpu) { 41 for_each_online_cpu(cpu) {
45 TRACE("Initializing CPU%d...\n", cpu); 42 TRACE("Initializing CPU%d...\n", cpu);
46 entry = cpu_state_for(cpu); 43 entry = &per_cpu(edfsc_cpu_state, cpu);
47 entry->cpu = cpu; 44 entry->cpu = cpu;
48 entry->scheduled = NULL; 45 entry->scheduled = NULL;
49 entry->linked = NULL; 46 entry->linked = NULL;