]> git.baikalelectronics.ru Git - kernel.git/commit
proc: fixup uptime selftest
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 24 Oct 2022 18:08:09 +0000 (21:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:53 +0000 (11:40 +0100)
commit64e7ac1a951d45c65e49a9e275ddb21999047fd9
tree78de87c1b0de22439491d6b1ca8574cde67332ec
parent437eb54334e08983c548337b7c2d1512ddbe9e2f
proc: fixup uptime selftest

[ Upstream commit 124293e47461234309987a127abf7c9b32ee3faa ]

syscall(3) returns -1 and sets errno on error, unlike "syscall"
instruction.

Systems which have <= 32/64 CPUs are unaffected. Test won't bounce
to all CPUs before completing if there are more of them.

Link: https://lkml.kernel.org/r/Y1bUiT7VRXlXPQa1@p183
Fixes: 70e353963592 ("proc: selftests: test /proc/uptime")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/proc/proc-uptime-002.c