diff options
| author | Nick Piggin <nickpiggin@yahoo.com.au> | 2004-08-23 21:07:42 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-23 21:07:42 -0700 |
| commit | 0df0d0635a54f071415d6994fd4c397c98ae57fd (patch) | |
| tree | baa8f0088e0d7fb6e2cf7607096f2dc7f341f0e3 /include/linux | |
| parent | ce9bb66df0ef6e503e860238b934205b4884be03 (diff) | |
[PATCH] sched: make rt_task unlikely
From: Ingo Molnar <mingo@elte.hu>
RT tasks are unlikely, move this into rt_task() instead of open-coding it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e8f5cd296223..8abfd1111c33 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -304,7 +304,7 @@ struct signal_struct { #define MAX_PRIO (MAX_RT_PRIO + 40) -#define rt_task(p) ((p)->prio < MAX_RT_PRIO) +#define rt_task(p) (unlikely((p)->prio < MAX_RT_PRIO)) /* * Some day this will be a full-fledged user tracking system.. |
