[PATCH V2 0/2] hrtimer: Iterate only over active clock-bases

From: Viresh Kumar
Date: Mon Apr 06 2015 - 22:11:17 EST


'active_bases' indicates which clock-base have active timers. While it
is updated (almost) correctly, it is hardly used.

And so this is an attempt to improve the code that iterates over all

The first patch fixes a issue that will result in a bug after the second commit,
and the second commit creates a macro for_each_active_base() and uses it at
multiple places.

- Dropped ffs() and wrote own routine __next_bit().

Viresh Kumar (2):
hrtimer: update '->active_bases' before calling
hrtimer: create for_each_active_base() to iterate over active

kernel/time/hrtimer.c | 70 ++++++++++++++++++++++++++++++++-------------------
1 file changed, 44 insertions(+), 26 deletions(-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/