From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753161AbbDGCLN (ORCPT ); Mon, 6 Apr 2015 22:11:13 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:32788 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752851AbbDGCLI (ORCPT ); Mon, 6 Apr 2015 22:11:08 -0400 From: Viresh Kumar To: Thomas Gleixner , Ingo Molnar , Peter Zijlstra Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Preeti U Murthy , Viresh Kumar Subject: [PATCH V2 0/2] hrtimer: Iterate only over active clock-bases Date: Tue, 7 Apr 2015 07:40:51 +0530 Message-Id: X-Mailer: git-send-email 2.3.0.rc0.44.ga94655d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, '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 clock-bases. 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. V1->V2: - Dropped ffs() and wrote own routine __next_bit(). Viresh Kumar (2): hrtimer: update '->active_bases' before calling hrtimer_force_reprogram() hrtimer: create for_each_active_base() to iterate over active clock-bases kernel/time/hrtimer.c | 70 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 26 deletions(-) -- 2.3.0.rc0.44.ga94655d