current.h 274 B

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