From a7a7f71529d9a6aae02ab3cb64451e036ce9d028 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Wed, 2 Nov 2011 11:33:44 -0400 Subject: Add unlikely() to rel master check (match pfair). --- litmus/sched_cedf.c | 2 +- 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) /* Bail out early if we are the release master. * The release master never schedules any real-time tasks. */ - if (cluster->domain.release_master == entry->cpu) { + if (unlikely(cluster->domain.release_master == entry->cpu)) { sched_state_task_picked(); return NULL; } 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) /* Bail out early if we are the release master. * The release master never schedules any real-time tasks. */ - if (gsnedf.release_master == entry->cpu) { + if (unlikely(gsnedf.release_master == entry->cpu)) { sched_state_task_picked(); return NULL; } -- cgit v1.2.2