current.h 317 B

12345678910111213141516
  1. #ifndef _ASMARM_CURRENT_H
  2. #define _ASMARM_CURRENT_H
  3. #include <linux/thread_info.h>
  4. static inline struct task_struct *get_current(void) __attribute_const__;
  5. static inline struct task_struct *get_current(void)
  6. {
  7. return current_thread_info()->task;
  8. }
  9. #define current (get_current())
  10. #endif /* _ASMARM_CURRENT_H */