Commit-ID: 90fdbdb48442a03c72cae5463e6edb64cb3a3a7d Gitweb: http://git.kernel.org/tip/90fdbdb48442a03c72cae5463e6edb64cb3a3a7d Author: Akinobu Mita <akinobu.mita@xxxxxxxxx> AuthorDate: Sun, 31 Jan 2010 20:53:24 +0900 Committer: Ingo Molnar <mingo@xxxxxxx> CommitDate: Tue, 2 Feb 2010 06:58:27 +0100 sched: Use for_each_bit No change in functionality. Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> LKML-Reference: <1264938810-4173-1-git-send-email-akinobu.mita@xxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- kernel/sched_cpupri.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/sched_cpupri.c b/kernel/sched_cpupri.c index 597b330..eeb3506 100644 --- a/kernel/sched_cpupri.c +++ b/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 -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |