From e9e912d3349d8caf3c40bc09370509724c72ac2f Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 15 Jun 2021 23:05:21 -0300 Subject: linux: Only use 64-bit syscall if required for mq_timedreceive For !__ASSUME_TIME64_SYSCALLS there is no need to issue a 64-bit syscall if the provided timeout fits in a 32-bit one. The 64-bit usage should be rare since the timeout is a relative one. Checked on i686-linux-gnu on a 4.15 kernel and on a 5.11 kernel (with and without --enable-kernel=5.1) and on x86_64-linux-gnu. Reviewed-by: Lukasz Majewski --- rt/tst-mqueue10-time64.c | 1 + 1 file changed, 1 insertion(+) create mode 100644 rt/tst-mqueue10-time64.c (limited to 'rt/tst-mqueue10-time64.c') diff --git a/rt/tst-mqueue10-time64.c b/rt/tst-mqueue10-time64.c new file mode 100644 index 0000000000..2c8a4ae372 --- /dev/null +++ b/rt/tst-mqueue10-time64.c @@ -0,0 +1 @@ +#include "tst-mqueue10.c" -- cgit 1.4.1