From b2a93e8e3bc1d3984f6200c50b3d90163894cb43 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 7 Jun 2022 16:53:30 +0000 Subject: [PATCH] devfreq: Build governor pod scaling as OOT module Make pod scaling governor as the OOT module. Bug 3674466 Change-Id: Id99a72f508889d0b9c416ba908f8a2de62c594d1 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2726249 Reviewed-by: Krishna Yarlagadda GVS: Gerrit_Virtual_Submit --- drivers/Makefile | 1 + drivers/devfreq/Makefile | 9 +++++++++ kernel-src-files-copy-list.txt | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 drivers/devfreq/Makefile diff --git a/drivers/Makefile b/drivers/Makefile index e5552015..8ea68e3a 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -3,6 +3,7 @@ LINUXINCLUDE += -I$(srctree.nvidia-oot)/include +obj-m += devfreq/ obj-m += gpu/ obj-m += hwmon/ obj-m += i2c/busses/ diff --git a/drivers/devfreq/Makefile b/drivers/devfreq/Makefile new file mode 100644 index 00000000..6f162e4c --- /dev/null +++ b/drivers/devfreq/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + +# NOTE: Do not change or add anything in this makefile. +# The source code and makefile rules are copied from the +# kernel/nvidia/drivers/devfreq. This file is +# just place-holder for empty makefile to avoid any build +# issue when copy is not done from command line and building +# the tree independent of source copy. diff --git a/kernel-src-files-copy-list.txt b/kernel-src-files-copy-list.txt index fd5f1300..863408d2 100644 --- a/kernel-src-files-copy-list.txt +++ b/kernel-src-files-copy-list.txt @@ -39,3 +39,7 @@ copy_dir nvgpu/drivers/gpu/nvgpu drivers/gpu/nvgpu copy_dir nvgpu/include include copy_dir nvgpu/nvsched nvsched copy_file nvidia/drivers/video/tegra/nvmap/include/linux/nvmap_exports.h include/linux/nvmap_exports.h + +# Files/directories for PODGOV +copy_dir nvidia/drivers/devfreq drivers/devfreq +copy_file nvidia/include/trace/events/nvhost_podgov.h include/trace/events/nvhost_podgov.h