Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4845911iob; Mon, 9 May 2022 03:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysf5EavpLQVYR1RDOPDhwZeXxlvEFKRdHaPM+s2J9hAOXB74vxBehedF+RiUglXkY1Clar X-Received: by 2002:a17:902:cecf:b0:15e:b10a:9f3a with SMTP id d15-20020a170902cecf00b0015eb10a9f3amr15990249plg.118.1652090608244; Mon, 09 May 2022 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652090608; cv=none; d=google.com; s=arc-20160816; b=ZL7aSb0dFgvDKb6nXCe3kO6udVRxPXhkxePAQhqhto7LJ/KRcMyNskPZJQYsmIDk2a Lop4doI81ovW01GTyHilU9aSpVvNPRITIeasqMLB/ll6I3ko7QiUT87HWpd/8mS+hpqr b/94PHfPKjkviwOuOxt77nOj1M2QSn1UtpM/Szyf9n2xbaTW9Lxg6Lpl8JWx9VwuijK5 ytg9wzs2V+GGJCSW13MTy5rfEOA8qXGt4DL5U1aBkGssvLyIBt4ll5vDw29CrPxJjcqX YrjDRjfNWEeVp4gIDp5yjI3rqN0U1ybIp8aJ4HaTI5iWWEhVMRlxjzq8lDEuPUEkGmrZ r+Dg== 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=JQ5hWsounMpf58DHcH0GLKrQSLqO2OdQzcem2B4+ChU=; b=Hq5uAMynQ3YTRi6V7+MwSmSUlXv+rdubEmVhUA/LQLBNCi3cz9zrxHhxr0skTfWd2k 4M2bdvVppGhyc0FHPNyPSAVobZl0n6Y5P0SRJSQ2il4z+WHfgntf8Vp2sH85d3DjYZ9n BZ7lBrXG5WYqTaIFKXFU/qUO4h/VlZkFujBR+KU91kNwfFnE66nijwbkawxw2JP/rsyv RAnm5qgSloVWCaqaSiLgSeXO3bZTobGvuylbXSm9jvmKgzoHBIBZUC1E+KlDDxKMruK5 LzGR+voqgze314jU8FeK8hKY6yYUCjPtZHIK9X7JaZ1nbkf767nhXSEpet8wGXBPxoJ8 PJFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QkF9M8J1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e19-20020a630f13000000b0039e59307c86si13747942pgl.617.2022.05.09.03.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:03:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QkF9M8J1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B99921E331; Mon, 9 May 2022 02:45:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233878AbiEIDwU (ORCPT + 99 others); Sun, 8 May 2022 23:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbiEIDkv (ORCPT ); Sun, 8 May 2022 23:40:51 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4A262103 for ; Sun, 8 May 2022 20:36:59 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id k1so12670272pll.4 for ; Sun, 08 May 2022 20:36:59 -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=JQ5hWsounMpf58DHcH0GLKrQSLqO2OdQzcem2B4+ChU=; b=QkF9M8J123UteR1cPxuEawzImVx/iLdvIryVF9OwDpcPLWaPm82wa1yD3XJwXIQ8bc JgAUvGxNueEjxQfFn8SAxLGZ+evF351ZGLIRh/hxEMh1SFIht86dRGKTn1Ps5UvHDtUO oy+vqQjHwapTDEzUg+VRkeDQYNRAdp1/2X9udHLwt0Rxla4648nfPRi5AVaM/V5pO/Z/ An094rUi2hY0/JxXSUdNKQnsJ7da2J5ljxaYVJljw6xtkApiPAw+dOR78oKmdF1QqiIA LTyVkYUmAVOVx1XaJHWU7fSIlwSKueBNcS88V3FNIfQEhkamsHjpQZekP6XFbNdl5Zr9 rMTQ== 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=JQ5hWsounMpf58DHcH0GLKrQSLqO2OdQzcem2B4+ChU=; b=wexOa2A3gpjLHsWhWzSaevAyrfobt0qt4PxnOuKnWkksCf0Hjl5baLC9+VRRUkCnA1 CaDMVhs8FyAZH4juKkKol/ywhaH0h+zbrojKS/qhoQtTMSpBw8s8wOFYZext8e2q2cA1 lDiyxQGQ0tOmGgQcbFz8/qDapqKpZIFOvI1c2vcbtFf8u8PDwae8mpvhv6OH1uf5ZB50 fj/E6raEna9enQUFrUYLsu52UI9yxNZU56Rp6kg/75sHLl/oXvVsDhldxLoLbgOKV2wb yFPlKS0OPokjoVyFpTazr7cQ0StxOycncGNSJBKBGkHRhfYGTxGK4laKUDSjXuh3Nlt0 5EiQ== X-Gm-Message-State: AOAM531RamapyGb643+e0rTDygcR8IO6+6BrBle/XhQxl+2Wll1MuSpc py94IRxaqkqF4drMAgD/YHavlA== X-Received: by 2002:a17:90b:606:b0:1d9:5dd5:1489 with SMTP id gb6-20020a17090b060600b001d95dd51489mr24257701pjb.171.1652067418724; Sun, 08 May 2022 20:36:58 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id b2-20020a056a0002c200b0050dc7628143sm7265847pft.29.2022.05.08.20.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:36:57 -0700 (PDT) Date: Mon, 9 May 2022 09:06:55 +0530 From: Viresh Kumar To: Schspa Shi Cc: rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: fix typo when cpufreq device remove Message-ID: <20220509033655.f2fsbis72hrjft6q@vireshk-i7> References: <20220506170832.33386-1-schspa@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220506170832.33386-1-schspa@gmail.com> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 07-05-22, 01:08, Schspa Shi wrote: > This should check cpufreq_driver->exit pointer before call this function > > Fixes: 91a12e91dc39 ("cpufreq: Allow light-weight tear down and bring up of > CPUs") > > Signed-off-by: Schspa Shi > --- > drivers/cpufreq/cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index 43dfaa8124e2..0f59c8ec2b39 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -1661,7 +1661,7 @@ static void cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif) > > if (cpumask_empty(policy->real_cpus)) { > /* We did light-weight exit earlier, do full tear down now */ > - if (cpufreq_driver->offline) > + if (cpufreq_driver->exit) > cpufreq_driver->exit(policy); > > cpufreq_policy_free(policy); NAK. The code is doing fine and there is a comment above it on why it is doing it this way. -- viresh