home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-sh / current.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  316 b   |  21 lines

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