Re: [PATCH v4] cpupower: Implement powercap enabled setters
From: Shuah Khan
Date: Wed Jun 03 2026 - 14:19:31 EST
On 5/28/26 09:32, Mateusz Jaśkiewicz wrote:
powercap_set_enabled() and powercap_zone_set_enabled() are part of the
public libcpupower API, but both currently return success without
updating sysfs.
You are right that cpupower set_enable API simply returns success.
Does intel-rapl:0 implement store function on your system?
It doesn't on mine.
cd /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0
echo 1 > enabled
bash: echo: write error: Function not implemented
Write the requested value to the matching enabled attribute so callers
can actually enable or disable the powercap control type or zone, and
report write failures back to the caller.
The patch loos good. Is there an existing use-case for this?
thanks,
-- Shuah