From patchwork Tue Jul 23 06:14:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 169480 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8446784ilk; Mon, 22 Jul 2019 23:14:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKzSY8BjrTyn6XC4aeftfYPQfogAUP1PuO6/VdPWjZdXWqmb0vdAquINj+rBR7KGjxGH7i X-Received: by 2002:a17:90a:71ca:: with SMTP id m10mr26719187pjs.27.1563862485161; Mon, 22 Jul 2019 23:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563862485; cv=none; d=google.com; s=arc-20160816; b=hMcFGWcjzBMQ2MMdevAyNIw83vQgu0mF/qAwHuGU6QTKAIYRQlAgOnexoJUpXBrNvE 3GMxq9KHEetfgcyHVFBgfYRj37Gh1J5O9JMle9zV00WBgIzlQPJrilCqqQVXuoK1KXuS 1NRJ9NHIjW5mDm4cobUedX4Zd8EhdO0CunwZiveqI8gV+iDD5MvDP3WBCAKuvT94wIhu trH4GMKJe7FC4FpOByfql6vkypfph8WFzel8cHAHkYwL6gWyE4BJB2024utqwDbl03AA NGDF0irRF8UYnK2/b85fvtPnHofqDtqy4aibC0msMB9QaPUsPSPSTrg26iaj96sPsGsH +pcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jB85xxBwApqxzP5t70awnp6QUVo8jjK/SH2bjct3MZE=; b=M7IoQ2dYECqflRNe5MZGcjVcl9ePXJPglhZoWYpjoIFfgOMnVt9sFvaVec61ebxNTz +wpeNXxaFs0BtBHRW5Bwr8NPOThobWMbOmC6sENU45S4kxciwe7lgk9CkonrvsX4MoYs QMYTxh2oTpDRmKoq4loY+xlhVCLJesWDDnM80o4PLM4sgAuvkFrdPTpoLRPBapoTe89N +PlkHZJ7YH2A+StMKyXyFKWyyRL2zthHmyZNcsDKPXaE4SxPZA7FksW0G1nhXKTEzu7J 4vu0RI9k40nZnvSQMD4vjjKFiqkhJDeKs+l5r17HOXQUW62Z4VJ8/i7ADxi9NkCg+1Fn /sEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G5ctZVOy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f2si13506322pgl.74.2019.07.22.23.14.44; Mon, 22 Jul 2019 23:14:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G5ctZVOy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2388141AbfGWGOn (ORCPT + 29 others); Tue, 23 Jul 2019 02:14:43 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35261 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388104AbfGWGOl (ORCPT ); Tue, 23 Jul 2019 02:14:41 -0400 Received: by mail-pg1-f196.google.com with SMTP id s1so12554365pgr.2 for ; Mon, 22 Jul 2019 23:14:40 -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=jB85xxBwApqxzP5t70awnp6QUVo8jjK/SH2bjct3MZE=; b=G5ctZVOyf1e2+mEbnsRNWd8L4HRAYyjqt9+LW4CUAh8H5q1QIFrn68m3DxIA1i/Ola XOm1L6f/TFr3BLsK/WRE9ka7TxXewhH3vqqKhEt5lrHGCaTxB+i9oKHNY2JalB7+nQZz W4FrpBrZ76Ci8SwLkhQ+H61D9Hi8YB9BsEFLjYpj7n9p6zZe19Pmitda/4B/N8NCCRrc XBtt1T/Gq4Bg0Kk/8GWDxdLw8w98y/jeZhrqcToiBoVkXh0DBpddlpEOMlqsU64KdWzF WxedSaGzqwXztSOwKn2w+K8gz7NFPiTwtsBnotow/RWB/EPeQtW681nVz/fFoikGlctk gXgA== 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=jB85xxBwApqxzP5t70awnp6QUVo8jjK/SH2bjct3MZE=; b=E8hjcaS2qJzkJ1YKjLWphplXeyyE603IDdda8PcAB9eydKookm7W+sf9ToPtaqkRfn 0k0pVQWuwyjZQvJWgkJSyhZfQsHnIC47akKtSaFi8w0AJkmZT25sojJcew5R8U5a5YIg EanmRRlJsG7093V701xU1B6lvKCoS/s9gwvrBKt/wYVq/c/flO4pXmHSv531Mf182YmU UnNxGSubi2MBsl1zudDlbKt9m6zrn5/ck2TBjTFUpIYJASfQNkkh0+wVRWyLOmdb7TWX TWFSC628R9uxd8vCoRVqrR+hvHrmCrz6qh6V5cqk+Scz1sk4+Wc22VAUsVfYsSwv1eCG qLJg== X-Gm-Message-State: APjAAAU8Np1UN9pJi0tm4iXVfdfot347aDnzdlwHuzCSZ0PPJrirInC5 MiNXWFVy++3s0RXxQvDrDIAfUA== X-Received: by 2002:a62:6344:: with SMTP id x65mr4282837pfb.111.1563862480370; Mon, 22 Jul 2019 23:14:40 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id q1sm49359764pfg.84.2019.07.22.23.14.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 23:14:39 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH V2 06/10] arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY Date: Tue, 23 Jul 2019 11:44:06 +0530 Message-Id: <3afc5046ba9435d229a004c17b005197488006d4.1563862014.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPUFREQ_NOTIFY is going to get removed soon, lets use CPUFREQ_CREATE_POLICY instead of that here. CPUFREQ_CREATE_POLICY is called only once (which is exactly what we want here) for each cpufreq policy when it is first created. Signed-off-by: Viresh Kumar --- drivers/base/arch_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0.rc0.269.g1a574e7a288b diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 63c1e76739f1..8cab1f5a8e0c 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -174,7 +174,7 @@ init_cpu_capacity_callback(struct notifier_block *nb, if (!raw_capacity) return 0; - if (val != CPUFREQ_NOTIFY) + if (val != CPUFREQ_CREATE_POLICY) return 0; pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n",