Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2589171imw; Wed, 6 Jul 2022 08:27:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uU9ivn5j6J7tTBd7O3IJVT0M3+R5z/6w12nyF+wQ/NuB446OjjVCYDrmTgKlIvaTCOaHgO X-Received: by 2002:a17:902:e748:b0:16a:726e:7c9e with SMTP id p8-20020a170902e74800b0016a726e7c9emr46052426plf.12.1657121231393; Wed, 06 Jul 2022 08:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657121231; cv=none; d=google.com; s=arc-20160816; b=aG9jIjOAXYUzmOWF+a3XEnMAAEzRs6lifCmCoMGdDtHLXNv09dOrIYkwxnZpA7tlXn 6CfHIOcor4y4EAG9At2BECQpR6WEj2UyCRRBZ1prF7LB+L4asImqk7IlLiQo4GAhkZg8 1kjHnxyriRyXGVlqIkUqw/+lYjW1+hRVk6X3ORJR7tQwHKzngRbstu3bLguZ4jPoRaU7 BWt3eo6pfrYzWwwZx/+3pWsCzdrkQRltm9N0QXmVCeWtgcflD13tnwqjTIKcwlKDBw85 tNRJh0JIvZucbLHzqxktBSKlz7+5Wif32IIO8/QisLGQv6A54Xx6dhQF8Mh6adSUVq0I axrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1DDTgoj1jp1g8suA37nuSuQrm4nVNe/H8nOJKr5Nvi0=; b=edBYjYA4i9LS6i6/GVw8GSQ8k+8WyqUFstVjwUFuHjBkABtMTZU5Kg//PQVhA/vjVl CfObOUNkrtK0Q8FwsNGp0GVtccKLghi770mWe42lO595eyV5dDQ72jme/aMUZwHiZ+om XVNVpvnMRIwSVta3dyd0/qNSt6SK/B5OhlXeaPAd8OoeWWUjR/KMADbQ3R1wMNa4ii/U UgjD3A+4W/OjNoqW0OAuhJtBx0+MmJcGqDj/mxz5ynw2cUbva41bn9jvZnH/tfwdURiU 4lRtPVRyTPN/sYBNjq26frV+BP4AJSiHvHDRpde08J7hb0OjmaJxtthBix7wTs7u+8EV GhDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cFcexwjZ; 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 n15-20020a170902e54f00b00169077429a4si26189567plf.344.2022.07.06.08.26.59; Wed, 06 Jul 2022 08:27:11 -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=cFcexwjZ; 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 S233064AbiGFPXk (ORCPT + 99 others); Wed, 6 Jul 2022 11:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232585AbiGFPXj (ORCPT ); Wed, 6 Jul 2022 11:23:39 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A9914080 for ; Wed, 6 Jul 2022 08:23:37 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id g4so14297306pgc.1 for ; Wed, 06 Jul 2022 08:23:37 -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; bh=1DDTgoj1jp1g8suA37nuSuQrm4nVNe/H8nOJKr5Nvi0=; b=cFcexwjZOJ0fITRZd/D8GaW95trrWBANNl55bssV5aM9/OKNX017JVQrPg6Wlvbmil xwVnLGDg2MSVzCt4MR+suEzCDPAw7P3z2o7EFRnoLJrbZ9vMmnWPMDn7h68QlcQaJEIO C8RhjLmdHk7PXNA7/y26Ah1FQ3cUla4ByNKGPSNH7bVo2V9AbE0J5t9sM/qNb1XaT+Or CRbBVODKq0RMKCAXSIQmJIt4eBHkxnPPXIwroFmPCUr8SL+pvnGJNMskPPDICL9M8amq 1mh0vYvN6iqYrKD7l9VY+CwGR6XMMTGzJJ8LfbxBMNe+qZxBiBTRAB8FcxK9Apdec5d6 mkIA== 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; bh=1DDTgoj1jp1g8suA37nuSuQrm4nVNe/H8nOJKr5Nvi0=; b=aYEHyTJSHt+9FtDLA0eehv+z++Xum036QmBptmApaoIc+ySfSVQAjgtheQQJ6LHP7F lcVNUYApx/Ro1xLK7Jb6G3RhyKnHfyyfd3EhjxuYiGXrWJFJ8gYnqT+jnWxWU1oQkXhT L3wSSwNhNR9eKGtT1MS9XQjr1HfjBPBPZ122ZEyJN6EOFir5eHaOIKRo/C21Y6HZqUvn nupk5GaZBodMrks/LpDSTbZv3wySRtZ/Ni2MDkUAO8hbb45SoNA3yDPylrS79vF/58au aSA2SAFmKjokmVdzMXRQvgd3pZ0mtL7XN41tFe79SUpN3q315BdCkYOtrtLOXE+vX7f5 LbRg== X-Gm-Message-State: AJIora9UPMRN6yeXadEOvvjx0RsNfrJ5Rf8mGPsdxUzgFLBQ61tHDVGh v25eSw9qY2dg9qeX9gj3AN2NVKh572BMLQ== X-Received: by 2002:a63:3807:0:b0:40c:73a7:b6cf with SMTP id f7-20020a633807000000b0040c73a7b6cfmr34203690pga.240.1657121017292; Wed, 06 Jul 2022 08:23:37 -0700 (PDT) Received: from localhost ([122.171.18.80]) by smtp.gmail.com with ESMTPSA id u13-20020a63454d000000b0040d2224ae04sm24176464pgk.76.2022.07.06.08.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 08:23:36 -0700 (PDT) Date: Wed, 6 Jul 2022 20:53:33 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM , Vincent Guittot , kernel test robot , Linux Kernel Mailing List Subject: Re: [PATCH V2 2/3] cpufreq: Panic if policy is active in cpufreq_policy_free() Message-ID: <20220706152333.fvgybznz3j6ffmre@vireshk-i7> References: <8c3d50faf8811e86136fb3f9c459e43fc3c50bc0.1653565641.git.viresh.kumar@linaro.org> <426bf6edc80b2e944d459fa7b8dffbe8b73bb3d9.1653623526.git.viresh.kumar@linaro.org> <20220615045957.55ocdyddcac3vwct@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 06-07-22, 15:49, Rafael J. Wysocki wrote: > WARN_ON() would be somewhat better, but then I'm not sure if having a > full call trace in this case is really useful, because we know when > cpufreq_policy_free() can be called anyway. > > Maybe just print a warning message. The warning will get printed, yes, but I am sure everyone will end up ignoring it, once it happens. One of the benefits of printing the call-stack is people will take it seriously and report it, and we won't miss a bug, if one gets in somehow. -- viresh