Skip to content

Commit

Permalink
sched: Use for_each_bit
Browse files Browse the repository at this point in the history
No change in functionality.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1264938810-4173-1-git-send-email-akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Akinobu Mita authored and Ingo Molnar committed Feb 2, 2010
1 parent 60db48c commit 90fdbdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/sched_cpupri.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90fdbdb

Please sign in to comment.