X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Farch%2Fcris%2Finclude%2Fasm%2Fcurrent.h;fp=kernel%2Farch%2Fcris%2Finclude%2Fasm%2Fcurrent.h;h=5f5c0efd00be4a962b2381e02a89a264efd0e737;hb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;hp=0000000000000000000000000000000000000000;hpb=98260f3884f4a202f9ca5eabed40b1354c489b29;p=kvmfornfv.git diff --git a/kernel/arch/cris/include/asm/current.h b/kernel/arch/cris/include/asm/current.h new file mode 100644 index 000000000..5f5c0efd0 --- /dev/null +++ b/kernel/arch/cris/include/asm/current.h @@ -0,0 +1,15 @@ +#ifndef _CRIS_CURRENT_H +#define _CRIS_CURRENT_H + +#include + +struct task_struct; + +static inline struct task_struct * get_current(void) +{ + return current_thread_info()->task; +} + +#define current get_current() + +#endif /* !(_CRIS_CURRENT_H) */