Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5313626pxj; Tue, 22 Jun 2021 21:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqaOwH9hWb78TLbWFk4hQNcCvkntNtp0RMaHf/g2mL5B1Ykm3hNUIpNi/C5JYDkWlhkk5w X-Received: by 2002:a05:6602:2595:: with SMTP id p21mr5087214ioo.51.1624422436633; Tue, 22 Jun 2021 21:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624422436; cv=none; d=google.com; s=arc-20160816; b=VHgF9qJzmsZLV4wKcTcY0NlvvDliM7tFvGDOP8xMSm3lfyjmNv+fn0gf3xUsMaTyQ9 l2mtQsg95XwBnX+x0O8aDcuiucKiSlGgH8VUnV3NRLR6B83vw9zenYbcyVIe3pTn08aw 2H5qsEXwA2FIc5hwWc/RLNopSEuVhabW4Qo8ExdCIHgAGDnvs+eexzAfOwzpW+bjBDH6 8GcCxVrDW+9zSlrs6t8XJUWTEIT8Ie0nV5P7CyycG/GbP73sU0ezOhWN7P1rMye309F9 Bb3wRHpJ7C/LqDMyozz3RYRF5aafeesSFkull2iT7Iy0rW6GXiZMmsnAPlSBVOrBSkfl Myrw== 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=IsYDkx5V1mJjZwOsL/IXqLmlqBdgt7SKxZu32NLqyoA=; b=MUB8yLMBUitN4aS8FmpbPw9HKZFiU37Rh4cTt0rs9UUylFSjYid1sekjA9L669Vifi +tJ4ZfG+Csu8uA7GNa9KjLkmDgykDNLPq5c8hPlRVPoBLbzg8zdNgjsejn+AzpkweHI6 p/hGGUMtgo+f5l2k5MGkR1yMWJoMXJDwdU/V3BVjn//8QPwp5DUwN0rlojpU7jXh6W41 KFU+7Nm6y3q782AixsFI1WO42WVkLD4/vZQaP2DQBWr+KU4fJJ1SUZ9XehcpWTDmeyHv 3gkyxsDZMlx79O33T5AI21Vy5hdtDF8EtKywajj5ibFokPYmXAfJU6Z5tVPYFMrgCktp DG5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KoW+3L+n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si1354817jar.65.2021.06.22.21.27.04; Tue, 22 Jun 2021 21:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=KoW+3L+n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230450AbhFWE12 (ORCPT + 99 others); Wed, 23 Jun 2021 00:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230439AbhFWE10 (ORCPT ); Wed, 23 Jun 2021 00:27:26 -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 E4B6AC06175F for ; Tue, 22 Jun 2021 21:25:08 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id e33so686283pgm.3 for ; Tue, 22 Jun 2021 21:25:08 -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=IsYDkx5V1mJjZwOsL/IXqLmlqBdgt7SKxZu32NLqyoA=; b=KoW+3L+nAzHaFgbRElzs5uOdutafEIWxBC8B5+GDKPJmQleXVfldK7z7iqfjfcts1Q rPL0kfSafE8oFpk6vrVZuNwIRU6AgR8g80QroxtsUVS3fgsrxmhUjcHJybPvXNrlECFn AAucYr0aZJMlHLGw09t3jUjQgj2XGLYNcQaGeuAUDeAoyhWbX1LrqiB6kBBDGV/8z/CN ++aB+n41chkQUj2WNQ3WqdialMd1lKj6yKzDF0hXvNUGzITEYsvfRPlJpIra4FVwPNQk b7US4tsXnrqo0EG6dj8k2TY/Ebg3EXPdt97zdZ9/IXIIO+2y6YkdmcBVH7hSDt3Fb6qh gNqQ== 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=IsYDkx5V1mJjZwOsL/IXqLmlqBdgt7SKxZu32NLqyoA=; b=s43H112uKx31TP9vhHRMy4ga+VsNmAp3cD5jGRV1GFRHMSMMdsHMBTyhB+am/vJy01 rJiJK7xqV+yD9yZgDGk+Kap1MCdlfwR1cm1J1DI9l1dHCIV1p2ZemvXBP17YEethTPjh QaZH9HfJszGczeQJFioQ2YXTU814trTG3yyeJFqw9f2/QFCYQ2i2TRWxF+/NzBAxgS6z huZzxjnC1YUezItXQagrfpW6l3gEbkBPnVqaYW2jpZwQ01AVTB7pgz9siOy5Sjr3ECEx 3Pnik1cPV73yopoywyzjhPm4LA6cZnHE8N7Mv7W6GpZnwtmsYd+hoTAEedhMz/kHAl6i O4/A== X-Gm-Message-State: AOAM530In9vR9+Soxcsf083N4kvOLKC1JPOzjItu3zwn/eRbBjUEjf+c kOhb04WSB/CSTj1dthZuPKCnLA== X-Received: by 2002:a63:5743:: with SMTP id h3mr1946424pgm.362.1624422308452; Tue, 22 Jun 2021 21:25:08 -0700 (PDT) Received: from localhost ([136.185.134.182]) by smtp.gmail.com with ESMTPSA id u11sm3770311pjf.46.2021.06.22.21.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 21:25:08 -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 V4 4/4] cpufreq: Remove stop_cpu() callback Date: Wed, 23 Jun 2021 09:54:42 +0530 Message-Id: <56e8fadcecf014ef0786499fbf4e93975b123483.1624421816.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all users of stop_cpu() are migrated to use other callbacks, lets remove its support from the core. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/cpu-drivers.rst | 3 --- Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst | 3 --- drivers/cpufreq/cpufreq.c | 3 --- include/linux/cpufreq.h | 1 - 4 files changed, 10 deletions(-) diff --git a/Documentation/cpu-freq/cpu-drivers.rst b/Documentation/cpu-freq/cpu-drivers.rst index a697278ce190..74fac797c396 100644 --- a/Documentation/cpu-freq/cpu-drivers.rst +++ b/Documentation/cpu-freq/cpu-drivers.rst @@ -71,9 +71,6 @@ And optionally .exit - A pointer to a per-policy cleanup function called during CPU_POST_DEAD phase of cpu hotplug process. - .stop_cpu - A pointer to a per-policy stop function called during - CPU_DOWN_PREPARE phase of cpu hotplug process. - .suspend - A pointer to a per-policy suspend function which is called with interrupts disabled and _after_ the governor is stopped for the policy. diff --git a/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst b/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst index 0ca2cb646666..9570e9c9e939 100644 --- a/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst +++ b/Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst @@ -76,9 +76,6 @@ 并且可选择 .exit - 一个指向per-policy清理函数的指针,该函数在cpu热插拔过程的CPU_POST_DEAD 阶段被调用。 - .stop_cpu - 一个指向per-policy停止函数的指针,该函数在cpu热插拔过程的CPU_DOWN_PREPARE - 阶段被调用。 - .suspend - 一个指向per-policy暂停函数的指针,该函数在关中断且在该策略的调节器停止 后被调用。 diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index cbab834c37a0..5e4b5316d254 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1606,9 +1606,6 @@ static int cpufreq_offline(unsigned int cpu) policy->cdev = NULL; } - if (cpufreq_driver->stop_cpu) - cpufreq_driver->stop_cpu(policy); - if (has_target()) cpufreq_exit_governor(policy); diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 353969c7acd3..2e2267a36502 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -371,7 +371,6 @@ struct cpufreq_driver { int (*online)(struct cpufreq_policy *policy); int (*offline)(struct cpufreq_policy *policy); int (*exit)(struct cpufreq_policy *policy); - void (*stop_cpu)(struct cpufreq_policy *policy); int (*suspend)(struct cpufreq_policy *policy); int (*resume)(struct cpufreq_policy *policy); -- 2.31.1.272.g89b43f80a514