diff mbox series

[meta-arago,master/scarthgap] thermal-init: remove the thermal-init script

Message ID 20240521235304.1467376-1-rs@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,master/scarthgap] thermal-init: remove the thermal-init script | expand

Commit Message

Randolph Sapp May 21, 2024, 11:53 p.m. UTC
From: Randolph Sapp <rs@ti.com>

Thermal zones defined in dt are enabled by default. This script just
adds a service that can be disabled to switch all thermal zones to
kernel unmanaged.

We should not attempt to do that ourselves, as we could potentially
interfere with other userspace tools like thermald.

Signed-off-by: Randolph Sapp <rs@ti.com>
---
 .../packagegroups/packagegroup-arago-base.bb  |  1 -
 .../recipes-core/thermal-init/thermal-init.bb | 19 ----------------
 .../thermal-init/thermal-init/init            | 22 -------------------
 3 files changed, 42 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init.bb
 delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init/init
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
index 1971d45c..8b37aab9 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
@@ -19,7 +19,6 @@  ARAGO_BASE = "\
     initscript-telnetd \
     systemd-telnetd \
     ethtool \
-    thermal-init \
     bash \
     opkg-bash-completion \
     udev-extraconf \
diff --git a/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb b/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb
deleted file mode 100644
index 56f1ba1a..00000000
--- a/meta-arago-distro/recipes-core/thermal-init/thermal-init.bb
+++ /dev/null
@@ -1,19 +0,0 @@ 
-DESCRIPTION = "Init script to enable cpu_thermal zones"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-PR = "r1"
-
-SRC_URI = "file://init"
-
-INITSCRIPT_NAME = "thermal-zone-init"
-INITSCRIPT_PARAMS = "defaults 98"
-
-inherit update-rc.d
-
-do_install() {
-    install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
-}
-
-FILES:${PN} = "${sysconfdir} ${bindir}"
diff --git a/meta-arago-distro/recipes-core/thermal-init/thermal-init/init b/meta-arago-distro/recipes-core/thermal-init/thermal-init/init
deleted file mode 100644
index b7e8a36a..00000000
--- a/meta-arago-distro/recipes-core/thermal-init/thermal-init/init
+++ /dev/null
@@ -1,22 +0,0 @@ 
-#!/bin/sh
-
-if [ ! -d /sys/class/thermal ]; then
-    exit 0
-fi
-
-case "$1" in
-    start )
-        echo "Enabling thermal zones..."
-        for i in /sys/class/thermal/thermal_zone*/mode; do
-            echo enabled > $i
-        done
-    ;;
-    stop )
-        echo "Disabling thermal zones..."
-        for i in /sys/class/thermal/thermal_zone*/mode; do
-            echo disabled > $i
-        done
-    ;;
-esac
-
-exit 0