diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2019-12-31 22:01:08 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2019-12-31 22:01:08 +0000 |
commit | cc5033301104d9dd0fad02be54b4a2c31f9857a0 (patch) | |
tree | 81f711f266ece513cbef1fde0f65ee4bac9ea560 /sys/i386/linux/linux_dummy.c | |
parent | 8c3fbf3c2032fd205d822ee5052b400623b977cf (diff) | |
download | src-cc5033301104d9dd0fad02be54b4a2c31f9857a0.tar.gz src-cc5033301104d9dd0fad02be54b4a2c31f9857a0.zip |
Add basic getcpu(2) support to linuxulator. The purpose of this
syscall is to query the CPU number and the NUMA domain the calling
thread is currently running on. The third argument is ignored.
It doesn't do anything regarding scheduling - it's literally
just a way to query the current state, without any guarantees
you won't get rescheduled an opcode later.
This unbreaks Java from CentOS 8
(java-11-openjdk-11.0.5.10-0.el8_0.x86_64).
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22972
Notes
Notes:
svn path=/head/; revision=356241
Diffstat (limited to 'sys/i386/linux/linux_dummy.c')
-rw-r--r-- | sys/i386/linux/linux_dummy.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_dummy.c b/sys/i386/linux/linux_dummy.c index ed61654355e5..4951e5c414c0 100644 --- a/sys/i386/linux/linux_dummy.c +++ b/sys/i386/linux/linux_dummy.c @@ -104,8 +104,6 @@ DUMMY(tee); DUMMY(vmsplice); /* Linux 2.6.18: */ DUMMY(move_pages); -/* Linux 2.6.19: */ -DUMMY(getcpu); /* Linux 2.6.22: */ DUMMY(signalfd); /* Linux 2.6.27: */ |