From patchwork Wed Sep 1 09:11:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 505009 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp68143jai; Wed, 1 Sep 2021 02:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdYlQsnF0ouP7sWtNZPBwpxuvL53KwCihWn10AGcUEwnagGqbqH6Kyygmhu5E57sVN7eq2 X-Received: by 2002:a05:6e02:503:: with SMTP id d3mr23777834ils.107.1630487551378; Wed, 01 Sep 2021 02:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630487551; cv=none; d=google.com; s=arc-20160816; b=sQ3K2YxWiH43k+SPK0eB32cTEPGGjSiVRRZJZREMr9LfRq7Pq5PosNCaLLd6AYwMeR cDCin1aiMoCRdbYScrAPl4d5q0JdwsJJZIPijGbpzTy4eqXh78y4hNk1GSYNOmu0mXVl hccHLUBMDrbMSxMd5Y1vQCi5uZet4Iyjq0/q9eOl2kaPSxtRsoHjzLG7QtfIt3XIYM3o ImMwzWVtHsqLzk1N26sDwgBhIPUYOaZeRrta92x/8AHpvSUbPWN2N0p+sC1cUewp6j8Q jHWKaaaViuS+Aq2PAhxzL7ypDhV2rMgF+9ZCMNnP6KNbzpFuZYnmuqc7bHe5YB5UE+4M 4hSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rSLnBv6HzrzRT2E+OrtX7br/e1aM+QCsCVPYd1HLzdc=; b=iSvL0SGZztcIMwlKdM5jppRNluRiZlth//U8zjteveH//Oq3j44lMYGQm/VjSV4l3A MIhy1w9EkyhnczkehrpGbLkAKT0/vkozVL7i/M28dWiUtladYPL1uHSeHAcKSAdA1ZYy 9L2kyw1+FxKlWHsh28je1fawSVGec72CdNQ7BhAyYf70Uw8f+6Gd/tHedo+leV27xEq5 cpgyYhkewNPoGe3PdlFI0prRVZj6RDC93kulBxvolvCb9wIXxEjlaHUhYravPV0xCgtM ropnGkAwCdPcglPNgol6o1CsBN4u/S5UKD43Wc/cS1nojAJgoQ8YBhIN8aR+FFY/+mGS tX6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gamJq1iY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si21098555jad.61.2021.09.01.02.12.30; Wed, 01 Sep 2021 02:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gamJq1iY; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S243336AbhIAJNX (ORCPT + 7 others); Wed, 1 Sep 2021 05:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243452AbhIAJNO (ORCPT ); Wed, 1 Sep 2021 05:13:14 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFBDFC0613D9 for ; Wed, 1 Sep 2021 02:12:17 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id k24so2096314pgh.8 for ; Wed, 01 Sep 2021 02:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rSLnBv6HzrzRT2E+OrtX7br/e1aM+QCsCVPYd1HLzdc=; b=gamJq1iYdnzqTJXSjm+5RkT6COhyrD+KFLc/YuFGGAyOn10TEbeOJ+VJJ/PMMkbAbb X8TVF4KZGYZKD2YBT1ll8KLrV6NMxqEdNpP27Hfce9FAbTSmzKiVRXIa6h1SdrK5/3oS QgcGhCmBL9ANHdpdCml7SSM8VwC53T7fEDYi3DwyXO8n7sPg7VgW8CdDoL828KmOZwiO uY7q60iFvh7y5e6/kpwIG6tXxZrvbUQNYj+7afblhj1EWFnXxAclrcdHvUq4SHeOWTba YRNchczQ0me0e6DJrm9o87wVIEpn9ad82xPYPIPQ98xjHX/J2eE0hkeCFp7YR9YTgeMb blUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rSLnBv6HzrzRT2E+OrtX7br/e1aM+QCsCVPYd1HLzdc=; b=aQlX+l+AsHpPZS40BbYAp/zlqjcEm4eXEMvDKMgLQM8GqapJ8+5JpCSdgYHhyATW/b 8r5MBmTs9SWXXsPy+vAxd+I0wb35/ZsxBZA1+AHQK/IYCYQnXHRXLsjDHDrK/2lf+TFC A5+0Vo4vF8vu2+PYiY7qKaOigDHMyWHnYSZ6f14FIN6zje9LqNHW1ZAl3fMlZXTIH4Qm e55e4DJNDlWxtgxnJX6DTT6aSa4TNY4U/24j8/KdJLYpPYOwACQ/M9F42ml2Ct4xpTpl Yw09nm91fyMPRCWjflWGLP4XEMyE11TWr2P35BTfYN9HMsSPpX0tr+mzUvpnO2q/jden nhpg== X-Gm-Message-State: AOAM532mLsxGecaXrdf/PagwV5UciHOtsYtxxTsEEDuU2L6EI7c87Yfh 79SnXjkppNCEg3nuoFAMirj9Xg== X-Received: by 2002:a65:648b:: with SMTP id e11mr30941505pgv.138.1630487537479; Wed, 01 Sep 2021 02:12:17 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id o15sm4900093pjr.0.2021.09.01.02.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 02:12:17 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar , Jonathan Corbet , Alex Shi Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] cpufreq: Remove ready() callback Date: Wed, 1 Sep 2021 14:41:57 +0530 Message-Id: <9c2435b18039fe50328b8f443dcd4dbb009f4618.1630487322.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This isn't used anymore, get rid of it. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/cpu-drivers.rst | 3 --- Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst | 2 -- drivers/cpufreq/cpufreq.c | 4 ---- include/linux/cpufreq.h | 3 --- 4 files changed, 12 deletions(-) -- 2.31.1.272.g89b43f80a514 diff --git a/Documentation/cpu-freq/cpu-drivers.rst b/Documentation/cpu-freq/cpu-drivers.rst index d84ededb66f9..3b32336a7803 100644 --- a/Documentation/cpu-freq/cpu-drivers.rst +++ b/Documentation/cpu-freq/cpu-drivers.rst @@ -75,9 +75,6 @@ And optionally .resume - A pointer to a per-policy resume function which is called with interrupts disabled and _before_ the governor is started again. - .ready - A pointer to a per-policy ready function which is called after - the policy is fully initialized. - .attr - A pointer to a NULL-terminated list of "struct freq_attr" which allow to export values to sysfs. diff --git a/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst b/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst index 5ae9cfa2ec55..334f30ae198b 100644 --- a/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst +++ b/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst @@ -80,8 +80,6 @@ 并且可选择 .resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次开始前被 调用。 - .ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。 - .attr - 一个指向NULL结尾的"struct freq_attr"列表的指针,该函数允许导出值到 sysfs。 diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 7d5f170ecad1..5782b15a8caa 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1517,10 +1517,6 @@ static int cpufreq_online(unsigned int cpu) kobject_uevent(&policy->kobj, KOBJ_ADD); - /* Callback for handling stuff after policy is ready */ - if (cpufreq_driver->ready) - cpufreq_driver->ready(policy); - if (cpufreq_thermal_control_enabled(cpufreq_driver)) policy->cdev = of_cpufreq_cooling_register(policy); diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c65a1d7385f8..fe6acc04e5e5 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -367,9 +367,6 @@ struct cpufreq_driver { int (*suspend)(struct cpufreq_policy *policy); int (*resume)(struct cpufreq_policy *policy); - /* Will be called after the driver is fully initialized */ - void (*ready)(struct cpufreq_policy *policy); - struct freq_attr **attr; /* platform specific boost support code */