Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupower: ToDo: Update ToDo with ideas for per_cpu_schedule handling

Based on Thomas Renninger's feedback/ideas. Re-structure the code
to better handle the per_cpu_schedule mechanism which was introduced
when adding support for AMD Zen based processors.

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Janakarajan Natarajan and committed by
Shuah Khan
4611a4fb 6af2ed53

+14
+14
tools/power/cpupower/ToDo
··· 8 8 - Add another c1e debug idle monitor 9 9 -> Is by design racy with BIOS, but could be added 10 10 with a --force option and some "be careful" messages 11 + - Add cpu_start()/cpu_stop() callbacks for monitor 12 + -> This is to move the per_cpu logic from inside the 13 + monitor to outside it. This can be given higher 14 + priority in fork_it. 15 + - Fork as many processes as there are CPUs in case the 16 + per_cpu_schedule flag is set. 17 + -> Bind forked process to each cpu. 18 + -> Execute start measures via the forked processes on 19 + each cpu. 20 + -> Run test executable in a forked process. 21 + -> Execute stop measures via the forked processes on 22 + each cpu. 23 + This would be ideal as it will not introduce noise in the 24 + tested executable.