From patchwork Tue Jul 16 09:54:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 169044 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp619004ilk; Tue, 16 Jul 2019 02:55:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQvJugYHaHzh54XR4m+mM1PS3KQq0e0CFc8IV/FR1CF2nDDXA4Jc5PjqQgN7oJ1n+ZWa2X X-Received: by 2002:a17:902:1566:: with SMTP id b35mr34984530plh.147.1563270911521; Tue, 16 Jul 2019 02:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563270911; cv=none; d=google.com; s=arc-20160816; b=pYKvuabQBtUKg1qNUqf2NIjrNmA9aGpdCYz7tC0w2JIKjlhkmixXE66RM4CSvEsHy4 +BWC3v46PkFhI6vHKgruv/8a2TccOKMXacBIUGLEQ80QW6+3PGfBwrmHLNgiAdlvygN7 nw6tZ8fYZVHkbeGLkXrocGrcSNsESZiMw5uPlBs3rlmjdydPKqvZaspvkJJiqjNxnqEA NMYZmuWMgYctsJf9Zw0eLRL3ufXX/701/GyMNrWs4lITkvSkqvzPNqit+4RhL9KXZUGd gl4QpBtLjGu5NDjBolQ306eN56bX9j776cYcVO1dbwkHVZh1Snp7mn1UdjdzR7SlYBNt o+bg== 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=72lapS1gikWJzRuHujLBmPCAQQBs6mR5D22kmc/6LFI=; b=uc9eARkeiE4yzSoY+lHyJnTOqugE3PD6i3dVUY4ENTs8l1hI9K/O6v8wGOc2pf+OtH dYxkLsLC+O1eYW0GAZq/9AB2VNrc4hxqHor3P6ACCJrmFWUPy9NGC0dgfflYdECFS9BQ +PxnM7NI3KZYBxwxEiFpyWf+qekS0Ug2QOb4Qkh4VkzhFgoVg1N0nPiXKm6N8wJ5TMu8 PRFCUA88t+LUAUuI4su0/LFrAmEO2h5rOs6TAtwOLD5Fokh0hBVLWY7HECdFm8s+HbUg Erz+fKa9Fai6hygDr6mU7t22WgNM0vgTGgFX76fILzo7AMNXdoDrB+Mxrva0f6heNyNX 5ung== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ic+8VmZB; 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 x7si18937972plv.130.2019.07.16.02.55.11; Tue, 16 Jul 2019 02:55:11 -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=Ic+8VmZB; 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 S1732742AbfGPJzK (ORCPT + 29 others); Tue, 16 Jul 2019 05:55:10 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44996 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732520AbfGPJzJ (ORCPT ); Tue, 16 Jul 2019 05:55:09 -0400 Received: by mail-pl1-f196.google.com with SMTP id t14so9817255plr.11 for ; Tue, 16 Jul 2019 02:55: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=72lapS1gikWJzRuHujLBmPCAQQBs6mR5D22kmc/6LFI=; b=Ic+8VmZBJDL+AveYtejzGXQn+oCRJbcOkYUcEdKomP2PxUCxknQBSiHwU/AXBFr7ud L+wyHFUGzxanL6nLtLdNriPaJsYtakivv2DKKpX8kE58v2PUaQduuMX4+DiCOk3QhUOE QrRIcJu96ZU06gv6PTc+D4xzaoIoTccec2ZqJPlg2zdqwspbE5tN/ILsRmsEkvg+IUha 3tIr4/FS6SXdYCQvg4MlXTwrcyHBInZrJR0cs9F9Reu5+8In9qNkgJqbJgjwBE9QOOKd IJ/xaYDVX7aesT7XMV/ZUpdMv2d7rS5M8jjt4u38R5nt6ZDf8mBtp/EJLWLlvdfbSFLN Qysw== 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=72lapS1gikWJzRuHujLBmPCAQQBs6mR5D22kmc/6LFI=; b=J8e4u3DS4M8ElEw+4+T3EXgxuRmpcUC8H9BOLejeO+3EQ6aXk4tu5ZNrdxwM9ZAfKS /aqLJ1fDlkVdrmVEG2iJjQE22n1XqhpcAvHA5WJnJuxe5U2ZDeoJi0kh9xQwdbagyWNa rTdHfYN+31ccd3h6UD218oLZ5bVi5roFY12ns+VjEbWI7AELhqwfCnVTqRB8E0Wz9H6T DootWAPlULm+vv7XXCqIW9lDJ9XjtQDflg+3JKiAkGwlQGZORwx6mvLddQByYctDY7SF 2gV2l6JMAjJIAwTdHevwBNi5Yrx2h0A4cFpM5v7yfqSIYIkDUzVJ/x5U3s7WDgPmvz3M 1ing== X-Gm-Message-State: APjAAAVO+wuzpazSa3MZ85N+P72r8Hopp5qsz1GgAHTONKOC/xYGdMlp aV6mj0v0UkOxdfS0uMuLWTLYLg== X-Received: by 2002:a17:902:f216:: with SMTP id gn22mr33365742plb.118.1563270908342; Tue, 16 Jul 2019 02:55:08 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id m4sm38578557pff.108.2019.07.16.02.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 02:55:07 -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 04/10] arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY Date: Tue, 16 Jul 2019 15:24:48 +0530 Message-Id: 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 9b09e31ae82f..49f2884fe77f 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -175,7 +175,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",