current.h 284 B

123456789101112
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_GENERIC_CURRENT_H
  3. #define __ASM_GENERIC_CURRENT_H
  4. #ifndef __ASSEMBLY__
  5. #include <linux/thread_info.h>
  6. #define get_current() (current_thread_info()->task)
  7. #define current get_current()
  8. #endif
  9. #endif /* __ASM_GENERIC_CURRENT_H */