Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1028835rdh; Fri, 27 Oct 2023 02:38:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWM93Akfz0yZ5bh5k+BiINhutYgdDGHniFZBUkVvqKzC+NAj5299Bq01+vepb14QTl7msx X-Received: by 2002:a81:764b:0:b0:5a8:204c:5c9b with SMTP id j11-20020a81764b000000b005a8204c5c9bmr1982747ywk.18.1698399516850; Fri, 27 Oct 2023 02:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698399516; cv=none; d=google.com; s=arc-20160816; b=IBRk5yXVvF/+7tYRob7ydlzhqFjmt6tf9x8QipwqPR6ljGqmRO9FCDlwmfETVLiION 4AvQIfGNh9/0+6HOm/XsHdZ0UfW9f+FwZZ/tdg1d9K8g4QaVv7iMJNXMCdA+BFwjRsrd fhRu4xIVkn5bap/7aVKdg9cRD4XptggZLIQi7hlh/IhDG13AxQLRcU7Rs3vURgOPCDPu CfKMeWJ+hJeCTu8jrI/3Eop5TS1hS9VjMzfQS5vy/t01Kkr30ibc8GbfCU5+CLei/boS GFsQc5VRLw4Kew43AtVkM0XFBRxy18WkrQhJ4NxWJcc8mfUnAdMAKY2QU88kTRE/DsNI 44ZA== 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:sender:dkim-signature; bh=Hp6XVPEWlKxTXMoDywd4XYa7dN3u7ZNoCSpHDxvreZE=; fh=PSWA2Cew5QTMD2HMgWzLQIgCaRiQdRH2PK6uelRrXPs=; b=GxEunmBLdfsanREvW+K4d14FpIt/2kxLkUvXRcK0FyW+9aEn4wS1ilZ8f3QqJnczxk op9f6sxAiD4rIXUoWDFIwRSc2Wbct1hvAEcZLMdXQhAPrj5zxi5CySxKnKvBE4X51w+j bhkX/rbxCeyORKjaDTEtyi8jlobhY6Hq0I236IJ9cCnOufUxRUE6lbqzhEn36xNXV8pe wXBNJQoOSviypAmInRSO9zuiHl6y1G2mBg0p8TPCSA632e4AGbjpYPZCxl9op7lzPgSW MM36uXwF2hiZ75+c5L4ZYpzxgopPoP6kmUBagc9KfmPTwTnQx+oSApdsIoOfMVTK8V3n tiqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qit7hqTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g66-20020a0ddd45000000b005ac228384a6si1725719ywe.101.2023.10.27.02.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qit7hqTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 20C2F83ACB5C; Fri, 27 Oct 2023 02:38:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345598AbjJ0JiX (ORCPT + 99 others); Fri, 27 Oct 2023 05:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjJ0JiU (ORCPT ); Fri, 27 Oct 2023 05:38:20 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD121A7; Fri, 27 Oct 2023 02:38:18 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so296323266b.3; Fri, 27 Oct 2023 02:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698399497; x=1699004297; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Hp6XVPEWlKxTXMoDywd4XYa7dN3u7ZNoCSpHDxvreZE=; b=Qit7hqTQ6HauPP6x6/m0Z/Y62H3EWUAHgKHf/IcUQ+Rg6P2gAMdlRJnpYtG8bqWNv3 eckxhpJuJ+2LBglAEuiMP7SsecmtSdFg8rsRaqx5hIYl+n89MxFyz4AqYyJxcaOMXQPI PhWiQALEbY3qSCvaSnxkZdZaHxlZ5q+EFyTF5+8q9MzrAw7V9xMUh5+h1dHv2DQkE0Me S2yoLiAnzJkmIRzHyD7F2lpBJrP8hLtifi1GHAi2Muvz1LLbkw5/AysZeH4QRmFJxvzX c4OMzaHCn4AEc38nMoruY+vhw76SKpGZyRkVJ7w7vmD8SkXKBNUC3UO4I32QwzQtqAFt sC0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698399497; x=1699004297; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hp6XVPEWlKxTXMoDywd4XYa7dN3u7ZNoCSpHDxvreZE=; b=NXdD8+6q8ye2YwslKRGpDKJf+HG6PNfys9sALVfCRVx1LDHBQKmXbI5liQXNODIm7e 8cpQv6Ruu2RffmtFCZtuRspD8/CTmVNXyJ5yI691M4+fajdJUwaTAYanxcLVMKsQ3MKE GRfSxTpg6D4orLozKyIfkQCNoyKozPXXhVXTfXTF0DDvH/Y4IcxKeGLPxg6b1P3fZUDy IPRsZtjSKvDIZEEGEivsIqEoYJed8rszYeemJ8yQAQ1maXE6frNKQ/8JVE6zDecJpv1I h4RKoH34Ys52KMJzogWUjd1Cd5Ec9WAE2QfN+Chl2RjASc65QRbMCLV5oMIX+dDUTpVT fGpg== X-Gm-Message-State: AOJu0YzxxUhvIcVw+Row1cx5blzcW1+F52YUAtnf5U0gC1X3qLgUt96A 59bcsYLXudcaXYU1wd2rDLc= X-Received: by 2002:a17:907:3f20:b0:9be:e278:4d47 with SMTP id hq32-20020a1709073f2000b009bee2784d47mr1882058ejc.27.1698399496568; Fri, 27 Oct 2023 02:38:16 -0700 (PDT) Received: from gmail.com (1F2EF1E7.nat.pool.telekom.hu. [31.46.241.231]) by smtp.gmail.com with ESMTPSA id hb26-20020a170906b89a00b009ae3e6c342asm913477ejb.111.2023.10.27.02.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:38:15 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 27 Oct 2023 11:38:13 +0200 From: Ingo Molnar To: Vincent Guittot Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, viresh.kumar@linaro.org, lenb@kernel.org, robert.moore@intel.com, lukasz.luba@arm.com, ionela.voinescu@arm.com, pierre.gondois@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, conor.dooley@microchip.com, suagrfillet@gmail.com, ajones@ventanamicro.com, lftan@kernel.org Subject: Re: [PATCH v4 5/7] cpufreq/cppc: move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf} Message-ID: References: <20231027080400.56703-1-vincent.guittot@linaro.org> <20231027080400.56703-6-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027080400.56703-6-vincent.guittot@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 02:38:30 -0700 (PDT) * Vincent Guittot wrote: > +/* Look up the max frequency in DMI */ > +static u64 cppc_get_dmi_max_khz(void) > +{ > + u16 mhz = 0; > + > + dmi_walk(cppc_find_dmi_mhz, &mhz); > + > + /* > + * Real stupid fallback value, just in case there is no > + * actual value set. > + */ > + mhz = mhz ? mhz : 1; > + > + return (1000 * mhz); Nit, and I realize this is pre-existing code, but 'return' is a keyword, not a function, so the parentheses are not needed. Thanks, Ingo