gnu: add sched_getcpu()

on x86_64 implemented with rdtscp or rdpid, generically with a syscall.

Change-Id: I8f776848bf35575abec8a8c612c4a25d8550daea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6866
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2023-08-21 17:55:16 +00:00
committed by waddlesplash
parent 449929ad0e
commit efbeada748
8 changed files with 161 additions and 0 deletions
+1
View File
@@ -196,6 +196,7 @@ extern status_t _kern_get_team_usage_info(team_id team, int32 who,
team_usage_info *info, size_t size);
extern status_t _kern_get_extended_team_info(team_id teamID, uint32 flags,
void* buffer, size_t size, size_t* _sizeNeeded);
extern int _kern_get_cpu();
extern status_t _kern_start_watching_system(int32 object, uint32 flags,
port_id port, int32 token);