Commit 74e930b8 authored by Martin Hicks's avatar Martin Hicks Committed by David Mosberger

[PATCH] ia64: runtime platform detection for 2.5

This is a 2.5 version of the patch that I juggled around a couple of
weeks ago.  It's just a simple macro that allows one to check if the
kernel is running on a specific ia64 platform.
parent 76cbafca
...@@ -276,6 +276,8 @@ do { \ ...@@ -276,6 +276,8 @@ do { \
#define finish_arch_switch(rq, prev) spin_unlock_irq(&(prev)->switch_lock) #define finish_arch_switch(rq, prev) spin_unlock_irq(&(prev)->switch_lock)
#define task_running(rq, p) ((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock)) #define task_running(rq, p) ((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock))
#define ia64_platform_is(x) (strcmp(x, platform_name) == 0)
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment