-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy current-related stuff. There was a comment in current.h saying that current_thread was obsolete, so this patch turns all instances of current_thread into current_thread_info(). There's some simplifying of the result in arch/um/sys-i386/signal.c. current.h and thread_info also get style cleanups. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
Feb 5, 2008
1 parent
009ec2a
commit a5a678c
Showing
5 changed files
with
20 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
/* | ||
* Copyright (C) 2000 Jeff Dike (jdike@karaya.com) | ||
/* | ||
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __UM_CURRENT_H | ||
#define __UM_CURRENT_H | ||
|
||
#ifndef __ASSEMBLY__ | ||
|
||
#include "asm/page.h" | ||
#include "linux/thread_info.h" | ||
|
||
#define current (current_thread_info()->task) | ||
|
||
/*Backward compatibility - it's used inside arch/um.*/ | ||
#define current_thread current_thread_info() | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
|
||
#endif | ||
|
||
/* | ||
* Overrides for Emacs so that we follow Linus's tabbing style. | ||
* Emacs will notice this stuff at the end of the file and automatically | ||
* adjust the settings for this buffer only. This must remain at the end | ||
* of the file. | ||
* --------------------------------------------------------------------------- | ||
* Local variables: | ||
* c-file-style: "linux" | ||
* End: | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters