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:
committed by
waddlesplash
parent
449929ad0e
commit
efbeada748
@@ -159,6 +159,7 @@ status_t _user_receive_data(thread_id *_sender, void *buffer, size_t buffer_size
|
||||
thread_id _user_find_thread(const char *name);
|
||||
status_t _user_get_thread_info(thread_id id, thread_info *info);
|
||||
status_t _user_get_next_thread_info(team_id team, int32 *cookie, thread_info *info);
|
||||
int _user_get_cpu();
|
||||
|
||||
status_t _user_block_thread(uint32 flags, bigtime_t timeout);
|
||||
status_t _user_unblock_thread(thread_id thread, status_t status);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user