Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757521AbbKSCcL (ORCPT ); Wed, 18 Nov 2015 21:32:11 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:35655 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587AbbKSCcJ (ORCPT ); Wed, 18 Nov 2015 21:32:09 -0500 From: Jia He To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Andrew Morton , Rasmus Villemoes , Denys Vlasenko , Kyungmin Park , Michal Nazarewicz , Yury Norov , Tejun Heo , Martin Kepplinger , George Spelvin , Ingo Molnar , Arnd Bergmann , Jia He Subject: [PATCH 0/3] Improve bitmap_empty and bitmap_full Date: Thu, 19 Nov 2015 10:31:51 +0800 Message-Id: <1447900314-5727-1-git-send-email-hejianet@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 23 find_fisrt_{zero_}bit are too heavy for bitmap_{full,empty}. We don't need to calculate and compare the position of bitmap. This set of patch instroduces lightweight api and replaces the heavy one. Jia He (3): linux/bitmap: Move 2 mask macro from bitmap.h to bitops.h lib: Introduce 2 find bit api: all_is_bit_{one,zero} linux/bitmap: Replace find_fisrt_{zero_}bit with the new lightweight api include/asm-generic/bitops/find.h | 3 +++ include/linux/bitmap.h | 7 ++---- include/linux/bitops.h | 4 ++++ lib/find_bit.c | 50 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 5 deletions(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/