Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp519680iob; Fri, 13 May 2022 06:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcujN8GiNAdrFm9A1PghVZ4+DIlgbZkZMjzRSOzn5ZUW3QQa4TsyjxXceXTOfOzxE5qh19 X-Received: by 2002:a05:6402:43c8:b0:428:659b:2b62 with SMTP id p8-20020a05640243c800b00428659b2b62mr35627745edc.204.1652449986379; Fri, 13 May 2022 06:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652449986; cv=none; d=google.com; s=arc-20160816; b=x0Vzk3YqpKgIVTeR/mKIP4aMXmPTOWn12nG5mGfSHvVEeVMARQhYAoRTtNf7bz4fxZ 2ivnscOkXqj4VQEIULA7OiQ85DEbBoj00dMWk7TkdnII7IkfDuxxZuKX4vA/iwZb7z+E 2rgBHdZ/VUsqJOXVKjqp6dzQqs3iqrMQicQ7Bz/p1zrAiPMR8CQSO5BqU8Ioi2DO+HfI C5fF4GAjh8r1MJCgzgA42cgME2G7pPmNuNZI2k2n6EfRGgJhiNdED4eiOUy5jtwjtqF6 nvg0+E3ZPOpyzMj+R7vfpgJwWLvti7DwATeZkN+pD2lpm6OziDlSz4BOgs6iGMGB/VP/ 2/BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YI7qa/QXN/dczkT1YUrOOGjLkBD1yFf86CRdik/OXPc=; b=Jar+s8vF4HkZSjozVjIsmkR5TjxuPsSrU0C5zE91EQjobK5UlrOS+YyM+xCQjHeUDX g7FNYCodcM8GzPxdBmJGRZNgSjOe1yagKwOtIzbxlyqJOSPs0cgj/7TN7O7ZBvl8rJ/X hmPVB/w8Z1fYaU5qDWJ1oMVkA1CND9ujiuKy9nfr+0aSrC04aD0FJXokYJXR74//0BH1 nehVghWZd6qqlQ5WsGXKFj4kmTNoXvvXQuouiG7IMZVkZFDYsaZB6jSJCPW3++ovkAwt bivZxR7496Os3VvGWiuKwQ5kVRcIYadeDSZVJl9DK+NGdWTtjfc2utXypytwaXpL0OU3 W+4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y4apOYdN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp25-20020a1709071b1900b006f3a2a53c3asi2403073ejc.172.2022.05.13.06.52.27; Fri, 13 May 2022 06:53:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Y4apOYdN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350711AbiELHG3 (ORCPT + 99 others); Thu, 12 May 2022 03:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350736AbiELHGC (ORCPT ); Thu, 12 May 2022 03:06:02 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E877525D for ; Thu, 12 May 2022 00:05:39 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id v10so3782313pgl.11 for ; Thu, 12 May 2022 00:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YI7qa/QXN/dczkT1YUrOOGjLkBD1yFf86CRdik/OXPc=; b=Y4apOYdNhXDppeVSa/hY0qEPuUky2k8Mg+NNjWBrW8mmFyzqzKMGoEWHE4GFn2zp4H cxj7pbd/24zF85Owm07osrmLRw6g2PD6EgaPzgQDGaeAukm6kGaAvSRpF2NXxyTATdTU lklv61EIttvQ3OGS2ci0xlBzXvhZPYzuqB223Cs7TnGxoZ9g/p9rgDbnwrNrTXTeUjwJ CRKFky5J7zDncf+87NEMYukF70kBixfmGKs31BrVSspYyJ9o+7maC2rRQCOfHoqf5KMN Sju56e+jlLk0zAiU3jppCPWN174v69+nsVIbDO+8ck5wqJunF68ADmKuV5IZmHvvH3Dz 6pLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YI7qa/QXN/dczkT1YUrOOGjLkBD1yFf86CRdik/OXPc=; b=wWYBOKGQ9j6FCVWiKBkzIxEGkwH3qTKhu0tbycV6LGCLm9D9ikYG9WqY4H/XZGxk/c DSePrc5tvDDHUYgBSSJUVxspoqZHYJQ0pRY4Vq7+7HlPQktABZGhnyM/5rvOVtj4cn1j EkB4sAPxFdLVMcy5TMbmww5CKKaohQUfyo0Bgf14IIl8rJIKV2b+4CvjvepdvGN9Blw8 IuFxTSGzyhVvb+k+YwDmwkNFYgtlQvdCNtQfyOCFaHaTY/s/kCTLEoxqVZOhF/GSZ3gG DjxDkNCWs+In48R+wstTiWdaVcAZn6gCj/HEofNTM2y/+GSkYapEMTj2Q96GygHDI3zv Ja7w== X-Gm-Message-State: AOAM532v7HUyoL7xDTXQDuz/2AEwk0k+RsEH/b/MVYxSZDCGFIRRfMUp jJCAP/8d9Nf2RHVJkcy2xK06YQ== X-Received: by 2002:a63:68c4:0:b0:3c6:c9a6:e316 with SMTP id d187-20020a6368c4000000b003c6c9a6e316mr13828351pgc.399.1652339139501; Thu, 12 May 2022 00:05:39 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id d10-20020a170902ceca00b0015e8d4eb285sm3251896plg.207.2022.05.12.00.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 00:05:38 -0700 (PDT) Date: Thu, 12 May 2022 12:35:36 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM , LKML Subject: Re: [PATCH v1 1/3] cpufreq: Reorganize checks in cpufreq_offline() Message-ID: <20220512070536.6mbzhllvr6vme5g7@vireshk-i7> References: <5585781.DvuYhMxLoT@kreacher> <4756874.31r3eYUQgx@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4756874.31r3eYUQgx@kreacher> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On 11-05-22, 17:48, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that cpufreq_offline() only needs to check policy_is_inactive() > once and rearrange the code in there to make that happen. > > No expected functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Acked-by: Viresh Kumar -- viresh