current.h 316 B

1234567891011121314151617181920
  1. #ifndef __ASM_SH_CURRENT_H
  2. #define __ASM_SH_CURRENT_H
  3. /*
  4. * Copyright (C) 1999 Niibe Yutaka
  5. *
  6. */
  7. #include <linux/thread_info.h>
  8. struct task_struct;
  9. static __inline__ struct task_struct * get_current(void)
  10. {
  11. return current_thread_info()->task;
  12. }
  13. #define current get_current()
  14. #endif /* __ASM_SH_CURRENT_H */