selftests/proc: Remove idle time monotonicity assertions
authorFrederic Weisbecker <frederic@kernel.org>
Wed, 22 Feb 2023 14:46:48 +0000 (15:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Apr 2023 14:35:13 +0000 (16:35 +0200)
commit270b2a679ea7be1ee2d84ea67751fb1ab15bcb20
tree99e1548b39733ace5a349aab7b60ccb89eb71bd3
parent9a1d4b8a7b80c5c796f05744851c535c5020024b
selftests/proc: Remove idle time monotonicity assertions

Due to broken iowait task counting design (cf: comments above
get_cpu_idle_time_us() and nr_iowait()), it is not possible to provide
the guarantee that /proc/stat or /proc/uptime display monotonic idle
time values.

Remove the assertions that verify the related wrong assumption so that
testers and maintainers don't spend more time on that.

Reported-by: Yu Liao <liaoyu15@huawei.com>
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230222144649.624380-8-frederic@kernel.org
tools/testing/selftests/proc/proc-uptime-001.c
tools/testing/selftests/proc/proc-uptime-002.c
tools/testing/selftests/proc/proc-uptime.h