diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 18:07:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-07 18:07:33 -0700 |
commit | 3d8cd0c5d75c424f986c0602dc26579fbb7c8080 (patch) | |
tree | 03c61f81542f6c34e32eb5e0dfc3d34668f88fdd /arch/m68knommu/include/asm/current.h | |
parent | 4c514a5ad1314b872e3185dabaf105c81d39d7e8 (diff) | |
parent | 58750139001bae11a1f9b074f3a9c774fecf5ba8 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
Move all of include/asm-m68knommu to arch/m68knommu/include/asm.
Diffstat (limited to 'arch/m68knommu/include/asm/current.h')
-rw-r--r-- | arch/m68knommu/include/asm/current.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/m68knommu/include/asm/current.h b/arch/m68knommu/include/asm/current.h new file mode 100644 index 00000000000..53ee0f9f7ce --- /dev/null +++ b/arch/m68knommu/include/asm/current.h @@ -0,0 +1,24 @@ +#ifndef _M68KNOMMU_CURRENT_H +#define _M68KNOMMU_CURRENT_H +/* + * current.h + * (C) Copyright 2000, Lineo, David McCullough <davidm@uclinux.org> + * (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com) + * + * rather than dedicate a register (as the m68k source does), we + * just keep a global, we should probably just change it all to be + * current and lose _current_task. + */ + +#include <linux/thread_info.h> + +struct task_struct; + +static inline struct task_struct *get_current(void) +{ + return(current_thread_info()->task); +} + +#define current get_current() + +#endif /* _M68KNOMMU_CURRENT_H */ |