summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/uapi/asm/papr_pdsm.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-12-18 14:43:47 +0300
committerMadhavan Srinivasan <maddy@linux.ibm.com>2025-01-11 08:09:45 +0300
commit2bf66e66d2e6feece6175ec09ec590a0a8563bdd (patch)
tree61d60ae06ae3dd7f0a7f449d0483c87e89f30f6f /arch/powerpc/include/uapi/asm/papr_pdsm.h
parent200f22fa48a8c670a1ba66d18d810c51055e6ae9 (diff)
downloadlinux-2bf66e66d2e6feece6175ec09ec590a0a8563bdd.tar.xz
selftests/powerpc: Fix argument order to timer_sub()
Commit c814bf958926 ("powerpc/selftests: Use timersub() for gettimeofday()"), got the order of arguments to timersub() wrong, leading to a negative time delta being reported, eg: test: gettimeofday tags: git_version:v6.12-rc5-409-gdddf291c3030 time = -3.297781 success: gettimeofday The correct order is minuend, subtrahend, which in this case is end, start. Which gives: test: gettimeofday tags: git_version:v6.12-rc5-409-gdddf291c3030-dirty time = 3.300650 success: gettimeofday Fixes: c814bf958926 ("powerpc/selftests: Use timersub() for gettimeofday()") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20241218114347.428108-1-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/include/uapi/asm/papr_pdsm.h')
0 files changed, 0 insertions, 0 deletions