Skip to contentSkip to conversation

cpupower second update for Linux 6.20-rc1

GIT PULL Shuah Khan 2 participants 2 messages Jan 20 – Jan 23 CPU power monitoring

lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

Hi Rafael,

Please pull the following cpupower second update for Linux 6.20-rc1.

Improve the installation procedure by making this systemd step optional enabling users to disable installation of systemd's unit file.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit ff72619e11348ab189e232c59515dd5c33780d7c:

tools/power cpupower: Show C0 in idle-info dump (2025-12-15 12:33:29 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-6.20-update-2

for you to fetch changes up to 7799ba2160e4919913ecabca8a7fc1aa4c576fb4:

cpupower: make systemd unit installation optional (2026-01-16 13:41:26 -0700)

----------------------------------------------------------------
linux-cpupower-6.20-update-2

Improve the installation procedure by making this systemd step optional enabling users to disable installation of systemd's unit file.

----------------------------------------------------------------
João Marcos Costa (1):
cpupower: make systemd unit installation optional

 tools/power/cpupower/Makefile | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

----------------------------------------------------------------

tools/power/cpupower/Makefile +12 -5
index a1df9196dc45..969716dfe8de 100644
@@ -315,7 +315,17 @@ endif
 	$(INSTALL_DATA) lib/cpuidle.h $(DESTDIR)${includedir}/cpuidle.h
 	$(INSTALL_DATA) lib/powercap.h $(DESTDIR)${includedir}/powercap.h
 
-install-tools: $(OUTPUT)cpupower
+# SYSTEMD=false disables installation of the systemd unit file
+SYSTEMD ?=	true
+
+install-systemd:
+	$(INSTALL) -d $(DESTDIR)${unitdir}
+	sed 's|___CDIR___|${confdir}|; s|___LDIR___|${libexecdir}|' cpupower.service.in > '$(DESTDIR)${unitdir}/cpupower.service'
+	$(SETPERM_DATA) '$(DESTDIR)${unitdir}/cpupower.service'
+
+INSTALL_SYSTEMD := $(if $(filter true,$(strip $(SYSTEMD))),install-systemd)
+
+install-tools: $(OUTPUT)cpupower $(INSTALL_SYSTEMD)
 	$(INSTALL) -d $(DESTDIR)${bindir}
 	$(INSTALL_PROGRAM) $(OUTPUT)cpupower $(DESTDIR)${bindir}
 	$(INSTALL) -d $(DESTDIR)${bash_completion_dir}
@@ -324,9 +334,6 @@ install-tools: $(OUTPUT)cpupower
 	$(INSTALL_DATA) cpupower-service.conf '$(DESTDIR)${confdir}'
 	$(INSTALL) -d $(DESTDIR)${libexecdir}
 	$(INSTALL_PROGRAM) cpupower.sh '$(DESTDIR)${libexecdir}/cpupower'
-	$(INSTALL) -d $(DESTDIR)${unitdir}
-	sed 's|___CDIR___|${confdir}|; s|___LDIR___|${libexecdir}|' cpupower.service.in > '$(DESTDIR)${unitdir}/cpupower.service'
-	$(SETPERM_DATA) '$(DESTDIR)${unitdir}/cpupower.service'
 
 install-man:
 	$(INSTALL_DATA) -D man/cpupower.1 $(DESTDIR)${mandir}/man1/cpupower.1
@@ -406,4 +413,4 @@ help:
 	@echo  '  uninstall	  - Remove previously installed files from the dir defined by "DESTDIR"'
 	@echo  '                    cmdline or Makefile config block option (default: "")'
 
-.PHONY: all utils libcpupower update-po create-gmo install-lib install-tools install-man install-gmo install uninstall clean help
+.PHONY: all utils libcpupower update-po create-gmo install-lib install-systemd install-tools install-man install-gmo install uninstall clean help
#1 lore raw

Hi Shuah,

Quoted 32 lines · Shuah Khan

Hi Rafael,

Please pull the following cpupower second update for Linux 6.20-rc1.

Improve the installation procedure by making this systemd step optional enabling users to disable installation of systemd's unit file.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit ff72619e11348ab189e232c59515dd5c33780d7c:

   tools/power cpupower: Show C0 in idle-info dump (2025-12-15 12:33:29 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux tags/linux-cpupower-6.20-update-2

for you to fetch changes up to 7799ba2160e4919913ecabca8a7fc1aa4c576fb4:

cpupower: make systemd unit installation optional (2026-01-16 13:41:26 -0700)

----------------------------------------------------------------
linux-cpupower-6.20-update-2

Improve the installation procedure by making this systemd step optional enabling users to disable installation of systemd's unit file.

Quoted 7 lines

----------------------------------------------------------------
João Marcos Costa (1):
cpupower: make systemd unit installation optional

  tools/power/cpupower/Makefile | 17 ++++++++++++-----
  1 file changed, 12 insertions(+), 5 deletions(-)

----------------------------------------------------------------

Pulled and added to linux-pm.git/linux-next, thanks!