Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp217902pxb; Wed, 18 Aug 2021 20:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7vMxsgfEoFhTCAa8mT8ON6M239Z+kpszWVw+iv7/aO9zv0L+oK//CODQv4qEIqRwoXV5/ X-Received: by 2002:a17:906:3c59:: with SMTP id i25mr12878218ejg.311.1629344087187; Wed, 18 Aug 2021 20:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629344087; cv=none; d=google.com; s=arc-20160816; b=02QnvzZCS05FGzYMCIOEYhy1NhsWnSHZqD5eqUYpu47ILxjbB3CXClzJDOrAm9LfJE aDZrxSDX9yud67OUwVfPJfEKrr/R/NlVf9hKpDoepRqMECi9Naa8ghEGrCKA3+CvQU5U Prth+Av24gZ/Y4xh7RkET2AVuR2lfdmoxH/W0I1KzDiKlG8OE1RRn3Kj96d0bKfOR/0e rtIDbY3IvWaX2UmZNk2NFvIB4G94HGCGuoFkYP6nCp1NYGZkruPOji4WFAXb14a+rJPu 5guHW9RJmzFT+a//DXbXt0NjazS3ZYxLzcL+c800rJeF1hVWQbCCiA5laIyqXlj/6NOA CcWw== 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=SZPbBOMsNpduSAknYI+koMMDJvEX5RZZ82ISzhfV7+A=; b=h2+6Sp9nZ1c/UtJoq9KrnbB1zLBch3ss3mPKIErw0/HE44alg3MsjxEobXuByngwis BkpLApHihfYx1Qw5nQUtNIgNJUH+6Fq9sIwvn7e4j6/BaIIn4iGy+25nDaBMx/CLsxer pq1pjvTFtuEqAp2ulNjR7DPv1Wc1Xnz/9NKqC3/AB/gfDDYQQb3Ss9WLSlDkFA5Ko3jv Q4pzFOhLQvDIaE17FOVu0n0SdPkyZ24gNcfZmrrRtlICYlOKyo8Ucz6pdlUrphYfrMei rviRcgN29nJB0KHGlx7s0X6R6fN2PM0jeNCPZk4JEp7ne6CurlZuTyx6UaHVsQ9jo+QN kFEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MIBwNoqo; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si1838806edm.267.2021.08.18.20.34.24; Wed, 18 Aug 2021 20:34:47 -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=@redhat.com header.s=mimecast20190719 header.b=MIBwNoqo; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236678AbhHSDcP (ORCPT + 99 others); Wed, 18 Aug 2021 23:32:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31608 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236576AbhHSDcK (ORCPT ); Wed, 18 Aug 2021 23:32:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629343894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SZPbBOMsNpduSAknYI+koMMDJvEX5RZZ82ISzhfV7+A=; b=MIBwNoqoPpnDgQENdSV+UCIjYbJkxEjp3SpcER+5uWh3NLIBmqXPn/Qk2lqKKKi4KpQBM6 65Z6Sr8XUiqzV6AijF1KAhJJMxdxzbSqfh4XWqvbs0d+M2EhXG+jNEWfbUUoeBCKUActrk EANkGY2FHAMx7kmBmQhkU48qgWdiU64= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-573-qUh8Hru9M--ltqq49dU-TA-1; Wed, 18 Aug 2021 23:31:33 -0400 X-MC-Unique: qUh8Hru9M--ltqq49dU-TA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB1BB802929; Thu, 19 Aug 2021 03:31:31 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.64.242.122]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6FAFB179B3; Thu, 19 Aug 2021 03:31:28 +0000 (UTC) From: Kate Hsuan To: Alex Hung , Hans de Goede , Mark Gross , Srinivas Pandruvada , AceLan Kao , Jithu Joseph , Maurice Ma , Sujith Thomas , Rajneesh Bhardwaj , Zha Qipeng , Mika Westerberg , "David E . Box" , linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Cc: platform-driver-x86@vger.kernel.org, Kate Hsuan Subject: [PATCH v3 11/20] platform/x86: intel_turbo_max_3: Move to intel sub-directory Date: Thu, 19 Aug 2021 11:29:52 +0800 Message-Id: <20210819033001.20136-12-hpa@redhat.com> In-Reply-To: <20210819033001.20136-1-hpa@redhat.com> References: <20210819033001.20136-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move intel_turbo_max_3 to intel sub-directory to improve readability and rename it from intel_turbo_max_3.c to turbo_max_3.c Signed-off-by: Kate Hsuan Acked-by: Srinivas Pandruvada --- drivers/platform/x86/Kconfig | 10 ---------- drivers/platform/x86/Makefile | 2 +- drivers/platform/x86/intel/Kconfig | 10 ++++++++++ drivers/platform/x86/intel/Makefile | 4 ++-- .../x86/{intel_turbo_max_3.c => intel/turbo_max_3.c} | 0 5 files changed, 13 insertions(+), 13 deletions(-) rename drivers/platform/x86/{intel_turbo_max_3.c => intel/turbo_max_3.c} (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 0edd59ffb6b6..b34bfa5c5748 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1101,16 +1101,6 @@ config INTEL_IMR source "drivers/platform/x86/intel_speed_select_if/Kconfig" -config INTEL_TURBO_MAX_3 - bool "Intel Turbo Boost Max Technology 3.0 enumeration driver" - depends on X86_64 && SCHED_MC_PRIO - help - This driver reads maximum performance ratio of each CPU and set up - the scheduler priority metrics. In this way scheduler can prefer - CPU with higher performance to schedule tasks. - This driver is only required when the system is not using Hardware - P-States (HWP). In HWP mode, priority can be read from ACPI tables. - config INTEL_UNCORE_FREQ_CONTROL tristate "Intel Uncore frequency control driver" depends on X86_64 diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 6082d4d1dad8..a57fbf26646a 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -122,7 +122,7 @@ obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/ -obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o + obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 481811ea4bf8..2943619d9018 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -99,4 +99,14 @@ config INTEL_SMARTCONNECT Connect enabled, and if so disables it. +config INTEL_TURBO_MAX_3 + bool "Intel Turbo Boost Max Technology 3.0 enumeration driver" + depends on X86_64 && SCHED_MC_PRIO + help + This driver reads maximum performance ratio of each CPU and set up + the scheduler priority metrics. In this way scheduler can prefer + CPU with higher performance to schedule tasks. + This driver is only required when the system is not using Hardware + P-States (HWP). In HWP mode, priority can be read from ACPI tables. + endif # X86_PLATFORM_DRIVERS_INTEL diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 53d55a9b17b9..58ccb1f8cbd0 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -32,5 +32,5 @@ intel-rst-y := rst.o obj-$(CONFIG_INTEL_RST) += intel-rst.o intel-smartconnect-y := smartconnect.o obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o - - +intel_turbo_max_3-y := turbo_max_3.o +obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o diff --git a/drivers/platform/x86/intel_turbo_max_3.c b/drivers/platform/x86/intel/turbo_max_3.c similarity index 100% rename from drivers/platform/x86/intel_turbo_max_3.c rename to drivers/platform/x86/intel/turbo_max_3.c -- 2.31.1