aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorStratos Psomadakis <psomas@cslab.ece.ntua.gr>2011-02-25 15:46:13 -0500
committerH. Peter Anvin <hpa@zytor.com>2011-02-25 19:37:32 -0500
commit7bf04be8f48ceeeffa5b5a79734d6d6e0d59e5f8 (patch)
treef1173ece23497f3b6e5af6e4cab6a26795124135 /arch/x86/kernel/asm-offsets.c
parent2b15cd96e5e93f9aa4f7041c91c1e7c344a62cbb (diff)
x86, asm: Cleanup unnecssary macros in asm-offsets.c
PAGE_SIZE_asm, PAGE_SHIFT_asm, THREAD_SIZE_asm can be safely removed from asm-offsets.c, and be replaced by their non-'_asm' counterparts in the code that uses them, since the _AC macro defined in include/linux/const.h makes PAGE_SIZE/PAGE_SHIFT/THREAD_SIZE work with as. Signed-off-by: Stratos Psomadakis <psomas@cslab.ece.ntua.gr> LKML-Reference: <1298666774-17646-2-git-send-email-psomas@cslab.ece.ntua.gr> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/asm-offsets.c')
-rw-r--r--arch/x86/kernel/asm-offsets.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
index 2b141c1915a5..4f13fafc5264 100644
--- a/arch/x86/kernel/asm-offsets.c
+++ b/arch/x86/kernel/asm-offsets.c
@@ -29,11 +29,6 @@
29 29
30void common(void) { 30void common(void) {
31 BLANK(); 31 BLANK();
32 DEFINE(PAGE_SIZE_asm, PAGE_SIZE);
33 DEFINE(PAGE_SHIFT_asm, PAGE_SHIFT);
34 DEFINE(THREAD_SIZE_asm, THREAD_SIZE);
35
36 BLANK();
37 OFFSET(TI_flags, thread_info, flags); 32 OFFSET(TI_flags, thread_info, flags);
38 OFFSET(TI_status, thread_info, status); 33 OFFSET(TI_status, thread_info, status);
39 OFFSET(TI_addr_limit, thread_info, addr_limit); 34 OFFSET(TI_addr_limit, thread_info, addr_limit);