current.h 287 B

123456789101112131415161718
  1. #ifndef _ASM_M32R_CURRENT_H
  2. #define _ASM_M32R_CURRENT_H
  3. /* $Id$ */
  4. #include <linux/thread_info.h>
  5. struct task_struct;
  6. static __inline__ struct task_struct *get_current(void)
  7. {
  8. return current_thread_info()->task;
  9. }
  10. #define current (get_current())
  11. #endif /* _ASM_M32R_CURRENT_H */