From patchwork Thu May 25 02:55:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 9820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp84787vqr; Wed, 24 May 2023 20:30:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71dRcXlxEDtKUP6oYju+TY4oeUtpVdnUiR2h7eAmjKw9N38hXiLkjy4zTUGulP7xaJAE2Q X-Received: by 2002:a17:902:d708:b0:1ac:a887:d344 with SMTP id w8-20020a170902d70800b001aca887d344mr215709ply.19.1684985419604; Wed, 24 May 2023 20:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684985419; cv=none; d=google.com; s=arc-20160816; b=QL8EFcY5cZ83wx+ZunYah8gRoH3ETSq8nr8C2qrDH1Xa+aJxKamyb7xtoDMSPLErl0 sMmC6fzRrLG/OrOVoGejnCauHtZQpcfWv7R92vjtcr/197tZkW6ixxI/0hBqsfEht/d3 OCwDF3YMFW5+KOtawnxFfFS7WU7u+A+dMze0/jTJCXOxIEryddJ2EyeiXfkrOR6L+qxh eUkYqRDmqAvyO3db2bNXIPWhCsI4IyakfMNfOpL23v4PfYUx9X6AU5PL7r0bnaZnWs1/ fO0AOpWit/bojpcufKZRlOkklSPNECSEEg99sb/ZNC+Mvr8BZjc2mPQpYYegBywFbopK I9Aw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020a637b5a000000b0053b99f632c9si52965pgn.842.2023.05.24.20.30.05; Wed, 24 May 2023 20:30:19 -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 S236418AbjEYC5v (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766835271329474422?= X-GMAIL-MSGID: =?utf-8?q?1766835271329474422?= 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(-)