From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAE39C4361B for ; Thu, 10 Dec 2020 15:06:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F5C923BAB for ; Thu, 10 Dec 2020 15:06:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389989AbgLJPGC (ORCPT ); Thu, 10 Dec 2020 10:06:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:39082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388977AbgLJPFb (ORCPT ); Thu, 10 Dec 2020 10:05:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E0DEFADCD; Thu, 10 Dec 2020 15:04:46 +0000 (UTC) Date: Thu, 10 Dec 2020 16:04:40 +0100 From: Mian Yousaf Kaukab To: "Rafael J. Wysocki" Cc: Mian Yousaf Kaukab , "Rafael J. Wysocki" , Len Brown , Viresh Kumar , Ionela Voinescu , ACPI Devel Maling List , Linux Kernel Mailing List , Linux PM , Petr Cervinka Subject: Re: [PATCH 1/2] acpi: cppc: add cpufreq device Message-ID: <20201210150417.GA24136@suse.de> References: <20201210142139.20490-1-yousaf.kaukab@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 03:32:09PM +0100, Rafael J. Wysocki wrote: > On Thu, Dec 10, 2020 at 3:23 PM Mian Yousaf Kaukab > wrote: > > > > Convert cppc-cpufreq driver to a platform driver (done in a separate patch) > > and add cppc-cpufreq device when acpi_cppc_processor_probe() succeeds. > > Honestly, I prefer to drop 28f06f770454 (along with its follower) > instead of making this change. > Even if we revert 28f06f770454 there is still one more small issue that these patches fix. Currently, ACPI_PROCESSOR_DEVICE_HID is used to load cppc-cpufreq module. In case when CPPC is disabled, some cycles will be wasted in loading cppc-cpufreq module. The module will return error from the init call though so no memory is wasted. After converting to platform-driver, cppc-cpufreq module will only be loaded when the platform-device is available. BR, Yousaf