aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/current.h')
-rw-r--r--arch/sh/include/asm/current.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sh/include/asm/current.h b/arch/sh/include/asm/current.h
new file mode 100644
index 000000000000..62b63880b333
--- /dev/null
+++ b/arch/sh/include/asm/current.h
@@ -0,0 +1,20 @@
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
11struct task_struct;
12
13static __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 */