current.h 275 B

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