diff options
author | Clayton Hobbs <cghobbs@cs.unc.edu> | 2019-01-10 00:28:07 -0500 |
---|---|---|
committer | Clayton Hobbs <cghobbs@cs.unc.edu> | 2019-01-10 00:28:07 -0500 |
commit | cc269e3f957f69b84a5d37c786e60ac1cf55917a (patch) | |
tree | b11511429018cc0bc8ef23b1519b9ffd712a8cb4 | |
parent | 906576967e8a430a28cfb164594d0e3792238761 (diff) |
Don't call TRACE before the device is initializededf-sc
-rw-r--r-- | litmus/sched_edfsc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/litmus/sched_edfsc.c b/litmus/sched_edfsc.c index 4e931643980a..b8e1be14707b 100644 --- a/litmus/sched_edfsc.c +++ b/litmus/sched_edfsc.c | |||
@@ -38,8 +38,7 @@ static int __init init_edfsc(void){ | |||
38 | int cpu; | 38 | int cpu; |
39 | cpu_entry_t *entry; | 39 | cpu_entry_t *entry; |
40 | 40 | ||
41 | for_each_online_cpu(cpu) { | 41 | for (cpu = 0; cpu < num_online_cpus(); cpu++) { |
42 | TRACE("Initializing CPU%d...\n", cpu); | ||
43 | entry = &per_cpu(edfsc_cpu_state, cpu); | 42 | entry = &per_cpu(edfsc_cpu_state, cpu); |
44 | entry->cpu = cpu; | 43 | entry->cpu = cpu; |
45 | entry->scheduled = NULL; | 44 | entry->scheduled = NULL; |