meta-arago.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: <rs@ti.com>
To: <afd@ti.com>, <reatmon@ti.com>, <denis@denix.org>
Cc: <meta-arago@lists.yoctoproject.org>
Subject: [meta-arago][master/scarthgap][PATCH] thermal-init: remove the thermal-init script
Date: Tue, 21 May 2024 18:53:04 -0500	[thread overview]
Message-ID: <20240521235304.1467376-1-rs@ti.com> (raw)

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 --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
-- 
2.45.1



                 reply	other threads:[~2024-05-21 23:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240521235304.1467376-1-rs@ti.com \
    --to=rs@ti.com \
    --cc=afd@ti.com \
    --cc=denis@denix.org \
    --cc=meta-arago@lists.yoctoproject.org \
    --cc=reatmon@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).