Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp368010rwd; Wed, 24 May 2023 20:08:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TxhUKWHylUefDnItfZ/AnjUspcTCb9eKOv/AKjqU+W8qKtzJoIBJNzXmRUqgr3BIhbmpW X-Received: by 2002:a05:6a00:14ce:b0:64d:3fb3:9ed9 with SMTP id w14-20020a056a0014ce00b0064d3fb39ed9mr7232407pfu.23.1684984136078; Wed, 24 May 2023 20:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684984136; cv=none; d=google.com; s=arc-20160816; b=Q7IvM/cm3iFHCUogWvUDv3kjSbQ811xLdMDxByuXK0vRB9AVVf9DH+7TdQ9fXLZKgT 2dAnbjTSkmCrbOwwoIcFNpq5LvA7TIT3JWK0odPn6MzBQwjYSN9T0N2ctcAAlOz0yjzL SYgAjQ7X3/pw+Kkf6AnCq/vJw1eNDAQxZp2+Zk1muDY7DThYGxSjfh4BU2KKHQEBPUcK Ty1wRuJUioa3QYRoKWYCfq7uQ8C4Z2bMTK1XZEHM/ApD1sjaQYdpaVq+DcJngmZzS3ig zPg1ZgV71G7UAOQfkAbfeerFQcJncYPxkClxF2Hny0uciynMJWaSD98tt3vO8XMTqfI8 mYWQ== 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:message-id:date:subject:cc:to:from; bh=N/RjSu0GAgUvTJd7PuVzmwB8JoP3NL/QglQX9YSJQRU=; b=dTUlqQARNYxsYTvZe8GV0WJczS8ypEnuwuLusEzLrnKEDEaOFTuFh6TVcsR4j14VWV 1iEsMk0EXQ8NZ10qNGLHilUVT0a7GTUy4XvKncakTxfZOZCdTaqiFf7XDMJTBqa7TBT3 qCCdOQ0VImNSqGyerDaJMDDgvnGQ1J3/oSEnVf39XViR92gzzzxFz6CLt2+rVU11hYaf ntcGIkbgfhqhT4v3m0shqiKgtnpfJAC5xoqHl6LgGxfvw4SqjrbOiEmPx7fhbih1vb3a 73VdCxYV9C4aQr/DUeQC9sxY5F+dfLhLQyHF/4y+kO0Mz2t2wV7Qlr/JmHZNIeVsp/we tqoQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p190-20020a625bc7000000b00643a50dd697si375105pfb.265.2023.05.24.20.08.32; Wed, 24 May 2023 20:08:55 -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 S236131AbjEYC5v (ORCPT + 99 others); Wed, 24 May 2023 22:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjEYC5r (ORCPT ); Wed, 24 May 2023 22:57:47 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 423F612F for ; Wed, 24 May 2023 19:57:43 -0700 (PDT) X-QQ-mid: bizesmtp63t1684983419t85lva7q Received: from localhost.localdomain ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 25 May 2023 10:56:57 +0800 (CST) X-QQ-SSF: 01200000000000303000000A0000000 X-QQ-FEAT: 6m2HWuPn8APBKt63b3ah3TllQMoQddj48JDVm4Iepq5vRZSuXhWkDmIyJiEkQ MMvn40T53r5LmKlVQsPdr7bAyetskT7oogCcohGJNvN7UewCTkHFngfiLwsab7GI7lkPqoL hUOlodi0YIdrXuTQoCL2ILEPmt9iEG19lXfRne5e00JAyBeo/LRJVJK11hYEmya4nTQXBeh wj3H4AoK/LJVOpUmO4+6EMM+p22e9We1hFNY4tMXwU/U1dN+3DTmK0EOBfo5m1dvTT2Jkex CH+oS9ZeiuMRrxsyOK8JZr0YuD8zCH3Y92kgw/8TnFCP9w7Nl3QIj3OvbR+CgWtZcG3NKp8 TUruhAgK+guXxTnDBFbCZ4wFEx43f1gw7hB8RcF X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14888827228828076966 From: Song Shuai 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 0/4] Remove WARN_ON in save_processor_state Date: Thu, 25 May 2023 10:55:51 +0800 Message-Id: <20230525025555.24104-1-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 for ARM,arm64,riscv,xtensa architechtures. Song Shuai (4): ARM: hibernate: remove WARN_ON in save_processor_state arm64: hibernate: remove WARN_ON in save_processor_state riscv: hibernate: remove WARN_ON in save_processor_state xtensa: hibernate: remove WARN_ON in save_processor_state arch/arm/kernel/hibernate.c | 1 - arch/arm64/kernel/hibernate.c | 1 - arch/riscv/kernel/hibernate.c | 1 - arch/xtensa/kernel/hibernate.c | 1 - 4 files changed, 4 deletions(-) -- 2.20.1