diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2011-11-02 11:33:44 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2011-11-02 11:33:44 -0400 |
commit | a7a7f71529d9a6aae02ab3cb64451e036ce9d028 (patch) | |
tree | 94ceaca2490d8c8283cdc531c9415fc6a780bf32 | |
parent | 89174d049ea77b127fb3f8b3bbd8bc2996d0a535 (diff) |
Add unlikely() to rel master check (match pfair).
-rw-r--r-- | litmus/sched_cedf.c | 2 | ||||
-rw-r--r-- | litmus/sched_gsn_edf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index 4bf61f7dbf3f..8b3f8a7e2609 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -421,7 +421,7 @@ static struct task_struct* cedf_schedule(struct task_struct * prev) | |||
421 | /* Bail out early if we are the release master. | 421 | /* Bail out early if we are the release master. |
422 | * The release master never schedules any real-time tasks. | 422 | * The release master never schedules any real-time tasks. |
423 | */ | 423 | */ |
424 | if (cluster->domain.release_master == entry->cpu) { | 424 | if (unlikely(cluster->domain.release_master == entry->cpu)) { |
425 | sched_state_task_picked(); | 425 | sched_state_task_picked(); |
426 | return NULL; | 426 | return NULL; |
427 | } | 427 | } |
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c index 467f8b284de4..7aad7f0ad8f2 100644 --- a/litmus/sched_gsn_edf.c +++ b/litmus/sched_gsn_edf.c | |||
@@ -409,7 +409,7 @@ static struct task_struct* gsnedf_schedule(struct task_struct * prev) | |||
409 | /* Bail out early if we are the release master. | 409 | /* Bail out early if we are the release master. |
410 | * The release master never schedules any real-time tasks. | 410 | * The release master never schedules any real-time tasks. |
411 | */ | 411 | */ |
412 | if (gsnedf.release_master == entry->cpu) { | 412 | if (unlikely(gsnedf.release_master == entry->cpu)) { |
413 | sched_state_task_picked(); | 413 | sched_state_task_picked(); |
414 | return NULL; | 414 | return NULL; |
415 | } | 415 | } |