diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-13 23:05:25 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-13 23:05:25 +0100 |
commit | 30e1c42921229143c7db7f80b9677c3fb24f36b1 (patch) | |
tree | 4b371cb3a0e3ebba35b096e9cf857341f236203b /kern/thread.h | |
parent | a26658f7ef6d92a03720fbf4d84a8e414e24dbe0 (diff) |
kern/thread: minor change about scheduling class string representation
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kern/thread.h b/kern/thread.h index 18a43986..723497db 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -277,11 +277,6 @@ thread_wchan_desc(const struct thread *thread) */ char thread_state_to_chr(const struct thread *thread); -/* - * Return a string representation of the scheduling class of a thread. - */ -const char * thread_schedclass_to_str(const struct thread *thread); - static inline const struct thread_sched_data * thread_get_sched_data(const struct thread *thread) { @@ -306,12 +301,17 @@ thread_priority(const struct thread *thread) return thread_get_sched_data(thread)->priority; } -static inline unsigned short +static inline unsigned int thread_global_priority(const struct thread *thread) { return thread_get_sched_data(thread)->global_priority; } +/* + * Return a string representation of the scheduling class of a thread. + */ +const char * thread_sched_class_to_str(unsigned char sched_class); + static inline struct thread * thread_from_tcb(struct tcb *tcb) { |