Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1985247rwr; Sat, 6 May 2023 02:39:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lMFEJMAWbL0Ae5kcFNOmOxDzB3+c7i5DxSKWuto7+KNO+q4EAlNOlUFhwnxrnU+7cFL8+ X-Received: by 2002:a05:6a00:2408:b0:63f:18ae:1d5f with SMTP id z8-20020a056a00240800b0063f18ae1d5fmr5481610pfh.29.1683365970472; Sat, 06 May 2023 02:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683365970; cv=none; d=google.com; s=arc-20160816; b=k2LCAsjFYuqU7hH7EyFFt+WOT9vqyDxuDsQ1pGgZnyN5GvdhFF6B7ctt0rPyVxDw/t ugsjQULN89hp74fP68FEiLJ93yWJP3WZDHoHAV7slSW+xY9hTISfuJsDnS/SaQUYRw60 dPN8ZCcJfK3ulXKMpZ0VJ9y5E6vgJwiL0/c8J9h/2RR2lJstHtqh6I+m8FxywpxVMbkX trAbVxwFKQOMsphVxhKtbfyM4TB12NbtdB1gMs5PGh34TA/Y6mMbEPW1OAcopkuiIW4r vE0ZsAhMVXY2oJy6E4ZXjzJo9SuXqxvbkxwiVvwrvACru4Xubj0gN0X3ArpxHh87mFt0 ZumA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=I8luaB7auc8s4Phsde4LBboXCuqNaMv7CtRVI1fS1+E=; b=tMp/wil5AYqL+3sf32Fvi0Ynnot2JTnPXe7+IdKsHyoJ+O2dhCkfKFVLiCfZ6kWlKE St0iZUt46FUPBi97LMleCU6LrKkQ5L2Iy2lq2gC9fBLpGas93me2daxrBS//QuqQpINj rlBuAIVyttT5LdNIHqt1Mv+z0o+6RnjebFiCFdRJgvbi+eyF+74egAUZG8FOZxgwZ9Ki ZMftTHbZKb2euvgdRFle2w80VuZAOAvtbIa3RuGhUsQYYqDApF0B5bwSVlOj6GrWewOP 3t7ophyOhujdS3alQN5RVjDieAveS6Q/y2esWZbxk29vsDoO4dNw7EIx2H947LNuz/nv hcRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s27-20020aa78bdb000000b0063d35b6d9ebsi3809021pfd.368.2023.05.06.02.39.16; Sat, 06 May 2023 02:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbjEFJL6 (ORCPT + 99 others); Sat, 6 May 2023 05:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbjEFJL4 (ORCPT ); Sat, 6 May 2023 05:11:56 -0400 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9117C1BF4 for ; Sat, 6 May 2023 02:11:55 -0700 (PDT) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4QD1yf11sMz8RTWg; Sat, 6 May 2023 17:11:54 +0800 (CST) Received: from xaxapp03.zte.com.cn ([10.88.97.17]) by mse-fl1.zte.com.cn with SMTP id 3469BcJB042686; Sat, 6 May 2023 17:11:39 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Sat, 6 May 2023 17:11:41 +0800 (CST) Date: Sat, 6 May 2023 17:11:41 +0800 (CST) X-Zmail-TransId: 2afa645619cdfffffffff19-ec7f7 X-Mailer: Zmail v1.0 Message-ID: <202305061711417142802@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , , , Subject: =?UTF-8?B?W1BBVENIXSByaXNjdjogbW06IHVzZSBiaXRtYXBfemVybygpIEFQSQ==?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 3469BcJB042686 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 645619DA.000/4QD1yf11sMz8RTWg X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ye Xingchen bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero() instead of bitmap_clear(). Signed-off-by: Ye Xingchen --- arch/riscv/mm/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index 12e22e7330e7..217fd4de6134 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -67,7 +67,7 @@ static void __flush_context(void) lockdep_assert_held(&context_lock); /* Update the list of reserved ASIDs and the ASID bitmap. */ - bitmap_clear(context_asid_map, 0, num_asids); + bitmap_zero(context_asid_map, num_asids); /* Mark already active ASIDs as used */ for_each_possible_cpu(i) { -- 2.25.1