Message ID | 20230525025555.24104-5-songshuaishuai@tinylab.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp74043vqr; Wed, 24 May 2023 20:00:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aziXjvtInycIOd2NuMJCuQ690fwOCnFryn3lc2kTZYa1BorWRbtickUAp+SAof+FSVCWb X-Received: by 2002:a05:6a00:14c4:b0:646:2e83:6b2e with SMTP id w4-20020a056a0014c400b006462e836b2emr5665825pfu.31.1684983632818; Wed, 24 May 2023 20:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684983632; cv=none; d=google.com; s=arc-20160816; b=I/xdTndm1Ljkt5ev0Nmy5FcjW+9ye2cIVdhvwqHLEoBDiOxsAM7BYrtJv56Hatco4A t7tgQGF9BuT6bd3dhMUGooKKzH+abeee74zExFAnVnQj4itOr9AQZRXe5HfGselouT93 Zc+nw66mjnL7s+uG1fX1F8pyXNKAPiA/Mra2ZRGi2zlFZAPH9Be810vqGo5l6NSBb/QC o/3rFPIgqm50Gx/0uFVBqoX5VPg8ry7IwmCcDobSMqs2Z+a/CCTv9x5TI1k55UvcgO6X Vw2bslcsgMSPhywI4voUIptSzy1r/KqUQ3fnIGQaN2A/ZyFYwnCcfQqdQaXS+GCEVb8b 2T/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=WwHZqt0k3Zh2JwFmmpn7iRUEAdRzcsXjkPtpw3GP9c8=; b=ZoI7R8k0ILNl25cqjXurkv6uc8SzcHtZPnvjYyqmUOeeeztwd2uC84hyfbZp1cEswp w1AKN79vUnH9hlSOjD088RKp78yZBjevdMkXNLFsJnjJ63BQ5WJp+OEDMaYWGRhQgN3T rYDwg0l71ZjfqtJ0g+X9A4xoTLEf95g9M1emG+JKiEzzEkdoyUC6m5tMtrmoZ5QVia2Y Wtls2n2kIwMzgE6/lHbygqj7iHHOhZw8TwXPmimfR2MQ5BEGO7llq7ZvjIM9zdrQjfQ/ DwsztxL9pPEmk8acSImU8YynkN6VfHQRsAL4UMJdPPhv6zuKEyB23o2fBXa40pulMW9L 8nVA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s132-20020a63778a000000b00538d00a0799si7030pgc.792.2023.05.24.20.00.16; Wed, 24 May 2023 20:00:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237956AbjEYC57 (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Wed, 24 May 2023 22:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233257AbjEYC5t (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2023 22:57:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D77183 for <linux-kernel@vger.kernel.org>; Wed, 24 May 2023 19:57:47 -0700 (PDT) X-QQ-mid: bizesmtp63t1684983441tzej1xdq Received: from localhost.localdomain ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 25 May 2023 10:57:19 +0800 (CST) X-QQ-SSF: 01200000000000303000000A0000000 X-QQ-FEAT: X3kNTHUrKMRJlZyT+2O5RdJGnxa2VEocmY9T2Ec5y4fHeQHbTKNAZHig3qVRw ugOfN+JUwaPDLD5af5iOZUA1gZW0bTB+xogyUz+29+XMpMp/y4kkGtYkNMmSkqAankJ89tN 7rgEUUJ0S9TNc6bW7ZlBlE9bhf0lPjRcvNwD9pygpsAGuM8Ad6FRxbZX584iCgA6tMj9jXF YlfaPcuPTXBBlSzNvxE5t7dWdzrB9dTSJ9QMQDuirSJ2rD6501e7T61GKiZI67m+vt2wS1n VjK12Xz12c87qvD9joA+8u4n3BOR84XIQPfGK6v+6Pe3CpKtgheeMeLjGb6A1/XtJfFe6iF uDRqZyUxoZQDgVORNOxbTtMN4GKhH08Y/8WJp9YyHLgm2ZEcMq6KJoi9GDRC/PWoD/vIVob X-QQ-GoodBg: 0 X-BIZMAIL-ID: 11307094136493837363 From: Song Shuai <songshuaishuai@tinylab.org> To: catalin.marinas@arm.com, will@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, chris@zankel.net, jcmvbkbc@gmail.com, songshuaishuai@tinylab.org, steven.price@arm.com, vincenzo.frascino@arm.com, pcc@google.com, wangxiang@cdjrlc.com, ajones@ventanamicro.com, conor.dooley@microchip.com, jeeheng.sia@starfivetech.com, leyfoon.tan@starfivetech.com Cc: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 4/4] xtensa: hibernate: remove WARN_ON in save_processor_state Date: Thu, 25 May 2023 10:55:55 +0800 Message-Id: <20230525025555.24104-5-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230525025555.24104-1-songshuaishuai@tinylab.org> References: <20230525025555.24104-1-songshuaishuai@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766833397698163456?= X-GMAIL-MSGID: =?utf-8?q?1766833397698163456?= |
Series |
Remove WARN_ON in save_processor_state
|
|
Commit Message
Song Shuai
May 25, 2023, 2:55 a.m. UTC
During hibernation or restoration, freeze_secondary_cpus
checks num_online_cpus via BUG_ON, and the subsequent
save_processor_state also does the checking with WARN_ON.
So remove the unnecessary checking in save_processor_state.
Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
---
arch/xtensa/kernel/hibernate.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/xtensa/kernel/hibernate.c b/arch/xtensa/kernel/hibernate.c index 06984327d6e2..314602bbf431 100644 --- a/arch/xtensa/kernel/hibernate.c +++ b/arch/xtensa/kernel/hibernate.c @@ -14,7 +14,6 @@ int pfn_is_nosave(unsigned long pfn) void notrace save_processor_state(void) { - WARN_ON(num_online_cpus() != 1); #if XTENSA_HAVE_COPROCESSORS local_coprocessors_flush_release_all(); #endif