diff options
author | peter <ztong@cs.unc.edu> | 2019-01-09 17:37:55 -0500 |
---|---|---|
committer | peter <ztong@cs.unc.edu> | 2019-01-09 17:37:55 -0500 |
commit | ca5c85ff6637f119186b69632d99940dad66afa6 (patch) | |
tree | 1eeac0bef6ac6f168a19c8f1a4a6225b613b21f1 | |
parent | 13694d9feb14476f517cd94cebf66cb4d6a9d1fe (diff) |
fix3
-rw-r--r-- | litmus/sched_edfsc.c | 5 |
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 | ||
19 | DEFINE_PER_CPU(cpu_entry_t, edfsc_cpu_state); | 19 | DEFINE_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 | |||
24 | static struct task_struct* edfsc_schedule(struct task_struct * prev) { | 21 | static 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; |