diff options
author | Gavin Shan <[email protected]> | 2022-08-10 18:41:14 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-08-10 15:08:29 -0400 |
commit | 0fcc102923dee97bf33bd199d5b26a6735e16097 (patch) | |
tree | 6f9cf6a0fe9b4ae3d34663f50f96b60b10ad6b62 /scripts/gdb/linux | |
parent | 66d42ac73fc680dbd7a1402f8b44967426522d0f (diff) |
KVM: selftests: Use getcpu() instead of sched_getcpu() in rseq_test
sched_getcpu() is glibc dependent and it can simply return the CPU
ID from the registered rseq information, as Florian Weimer pointed.
In this case, it's pointless to compare the return value from
sched_getcpu() and that fetched from the registered rseq information.
Fix the issue by replacing sched_getcpu() with getcpu(), as Florian
suggested. The comments are modified accordingly by replacing
"sched_getcpu()" with "getcpu()".
Reported-by: Yihuang Yu <[email protected]>
Suggested-by: Florian Weimer <[email protected]>
Suggested-by: Mathieu Desnoyers <[email protected]>
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Gavin Shan <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions