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=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 13683C433FE for ; Mon, 7 Dec 2020 07:47:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C63B1225A9 for ; Mon, 7 Dec 2020 07:47:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726083AbgLGHq7 (ORCPT ); Mon, 7 Dec 2020 02:46:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgLGHq7 (ORCPT ); Mon, 7 Dec 2020 02:46:59 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F853C0613D3 for ; Sun, 6 Dec 2020 23:46:19 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id 69so353837pgg.8 for ; Sun, 06 Dec 2020 23:46:19 -0800 (PST) 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=siy5k+plcJtXdcMZn6ACu9NpjqM7plnkiw05pK5XU78=; b=SDUXu+D0A6hVVfD7s9o8DA/1jQ8Bu8P0p8WJ72Zd8IiPT4Jbd36OkBflzx5nis97e7 2m+YWrHHdHGVquqwdMRyTXd5AnglaWoSG0eV6tKGxXmzW+a5GwSp7V71wKEwMpJOXHMs TIOd0RDwkoVEhMq8PpWQpru6n3UIkct5T95tfzH9yX5AlilLX5Q5Fx5MqoygwCmEwLvB FPmFW57vMqXXyrDjZkgJPNRCzYytAvf4cuT/08hU54TWqXSt04STB3EFnpu7qH4X5L1s G7pSSFaShvs7GSinDFoY7GMzwoeBgorkdGaPSWmuVKDxcuLpMDcuMN7lNi8DUwG9w8ev AFhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=siy5k+plcJtXdcMZn6ACu9NpjqM7plnkiw05pK5XU78=; b=L2HRLTgaGbrCv7cfmQPqxEnwG1oBf6g3ul5qpDQG53W7fLAbq8V9I40CqqIE2V9yZv ZvHpgItY8hy3DvfWy5n8X2mcoFfPAkjHoz4inEgr8nUtjtqSU61AGs7Lx62lnBZtJatk A2deb2vJfNSUEL9ZEhJIf4lcKyzr8pjYpA2XOrEwbx9zGkHYknNzyf9k1uuqpU6jQ2ho QsJ/1lfhxjBDMDCbEiUWmrJKkEQFQRvnuki+IU7BVtX9G28rMF2ea5Yk7BkjiD7qBGpQ FBhBnYLl5fR8x3W633OqojMCMfo8KPGGMDNkNH8j7Lg1f1SDQ5GUWI5snQsqF2lFYzzm ADsg== X-Gm-Message-State: AOAM532EgaHSX3UFTq49EzsDFJLuYgnVoEsZredo6wwea32xnCDkVPGz I912GND2gQtspE4dGX0d5+MfZg== X-Google-Smtp-Source: ABdhPJz5sQW7nMiLfe5VnS5PY25vhc4Gn/3VRv6D4H965tRx0eW+S7+5lm9b9onKp9q38melEzDkUg== X-Received: by 2002:a63:c843:: with SMTP id l3mr17438532pgi.202.1607327178597; Sun, 06 Dec 2020 23:46:18 -0800 (PST) Received: from localhost ([122.172.136.109]) by smtp.gmail.com with ESMTPSA id c184sm521086pfb.11.2020.12.06.23.46.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Dec 2020 23:46:17 -0800 (PST) Date: Mon, 7 Dec 2020 13:16:15 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Srinivas Pandruvada , Peter Zijlstra , Doug Smythies , Giovanni Gherdovich Subject: Re: [RFC][PATCH 1/2] cpufreq: Add special-purpose fast-switching callback for drivers Message-ID: <20201207074615.kmvy5afoolhv5cgq@vireshk-i7> References: <1817571.2o5Kk4Ohv2@kreacher> <2174134.tL5yAn4CWt@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2174134.tL5yAn4CWt@kreacher> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-11-20, 19:37, Rafael J. Wysocki wrote: > Index: linux-pm/include/linux/cpufreq.h > =================================================================== > --- linux-pm.orig/include/linux/cpufreq.h > +++ linux-pm/include/linux/cpufreq.h > @@ -320,6 +320,15 @@ struct cpufreq_driver { > unsigned int index); > unsigned int (*fast_switch)(struct cpufreq_policy *policy, > unsigned int target_freq); > + /* > + * ->fast_switch() replacement for drivers that use an internal > + * representation of performance levels and can pass hints other than > + * the target performance level to the hardware. > + */ > + void (*adjust_perf)(unsigned int cpu, bool busy, Maybe this should still take policy as an argument (like other calls) instead of CPU, even if it is going to be used for single-cpu per policy case for now. > + unsigned long min_perf, > + unsigned long target_perf, > + unsigned long capacity); -- viresh