From b2977739b7583412b8ad25bf988ef6c00d8bffb6 Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Sun, 31 Jan 2010 20:53:24 +0900 Subject: [PATCH] --- yaml --- r: 182513 b: refs/heads/master c: 90fdbdb48442a03c72cae5463e6edb64cb3a3a7d h: refs/heads/master i: 182511: ce7ff1d7b70989e4914f6f25aca6f3644a1ee26a v: v3 --- [refs] | 2 +- trunk/kernel/sched_cpupri.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 7ecace42efc7..d6c38093d15f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 60db48cacb9b253d5607a5ff206112a59cd09e34 +refs/heads/master: 90fdbdb48442a03c72cae5463e6edb64cb3a3a7d diff --git a/trunk/kernel/sched_cpupri.c b/trunk/kernel/sched_cpupri.c index 597b33099dfa..eeb3506c4834 100644 --- a/trunk/kernel/sched_cpupri.c +++ b/trunk/kernel/sched_cpupri.c @@ -47,9 +47,7 @@ static int convert_prio(int prio) } #define for_each_cpupri_active(array, idx) \ - for (idx = find_first_bit(array, CPUPRI_NR_PRIORITIES); \ - idx < CPUPRI_NR_PRIORITIES; \ - idx = find_next_bit(array, CPUPRI_NR_PRIORITIES, idx+1)) + for_each_bit(idx, array, CPUPRI_NR_PRIORITIES) /** * cpupri_find - find the best (lowest-pri) CPU in the system