linux-user: call set/getscheduler set/getparam directly

There seems to be difference in syscall and libc definition of these
methods and therefore musl does not implement them (1e21e78bf7). Call
syscall directly to ensure the behavior of the libc of user application,
not the libc that was used to build QEMU.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Message-Id: <20220105041819.24160-3-tonistiigi@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Tonis Tiigi 2022-01-04 20:18:19 -08:00 committed by Laurent Vivier
parent 45ad761c27
commit 407a119bfd
2 changed files with 28 additions and 10 deletions

View file

@ -2904,4 +2904,8 @@ struct target_sched_attr {
abi_uint sched_util_max;
};
struct target_sched_param {
abi_int sched_priority;
};
#endif