aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:38 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:38 -0500
commitfc87e9061a5635fe1b367dad95498846dd5eda31 (patch)
tree6b10d1714359b22c9c28e85627888552d644833b
parent2c1c468a382e64afccacdfe03fa4c0615cd4264f (diff)
x86: unify mm_segment_t definition
This patch moves the mm_segment_t structure definition to processor.h This makes mmsegment.h file useless, and it is deleted. Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--include/asm-x86/mmsegment.h8
-rw-r--r--include/asm-x86/processor.h5
-rw-r--r--include/asm-x86/processor_32.h5
-rw-r--r--include/asm-x86/processor_64.h1
-rw-r--r--include/asm-x86/thread_info_64.h2
5 files changed, 6 insertions, 15 deletions
diff --git a/include/asm-x86/mmsegment.h b/include/asm-x86/mmsegment.h
deleted file mode 100644
index d3f80c996330..000000000000
--- a/include/asm-x86/mmsegment.h
+++ /dev/null
@@ -1,8 +0,0 @@
1#ifndef _ASM_MMSEGMENT_H
2#define _ASM_MMSEGMENT_H 1
3
4typedef struct {
5 unsigned long seg;
6} mm_segment_t;
7
8#endif
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index 2b896b0aa3fa..87466b6d3b92 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -424,6 +424,11 @@ struct extended_sigtable {
424 struct extended_signature sigs[0]; 424 struct extended_signature sigs[0];
425}; 425};
426 426
427typedef struct {
428 unsigned long seg;
429} mm_segment_t;
430
431
427/* 432/*
428 * create a kernel thread without removing it from tasklists 433 * create a kernel thread without removing it from tasklists
429 */ 434 */
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index f0f7ca48444e..fa921aa1a93f 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -103,11 +103,6 @@ union i387_union {
103 struct i387_soft_struct soft; 103 struct i387_soft_struct soft;
104}; 104};
105 105
106typedef struct {
107 unsigned long seg;
108} mm_segment_t;
109
110
111#define INIT_THREAD { \ 106#define INIT_THREAD { \
112 .sp0 = sizeof(init_stack) + (long)&init_stack, \ 107 .sp0 = sizeof(init_stack) + (long)&init_stack, \
113 .vm86_info = NULL, \ 108 .vm86_info = NULL, \
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h
index bfc4ce6e2f00..1a258749b7ca 100644
--- a/include/asm-x86/processor_64.h
+++ b/include/asm-x86/processor_64.h
@@ -14,7 +14,6 @@
14#include <asm/msr.h> 14#include <asm/msr.h>
15#include <asm/current.h> 15#include <asm/current.h>
16#include <asm/system.h> 16#include <asm/system.h>
17#include <asm/mmsegment.h>
18#include <linux/personality.h> 17#include <linux/personality.h>
19#include <asm/desc_defs.h> 18#include <asm/desc_defs.h>
20 19
diff --git a/include/asm-x86/thread_info_64.h b/include/asm-x86/thread_info_64.h
index c2911a99cc32..9b531ea015a8 100644
--- a/include/asm-x86/thread_info_64.h
+++ b/include/asm-x86/thread_info_64.h
@@ -21,7 +21,7 @@
21#ifndef __ASSEMBLY__ 21#ifndef __ASSEMBLY__
22struct task_struct; 22struct task_struct;
23struct exec_domain; 23struct exec_domain;
24#include <asm/mmsegment.h> 24#include <asm/processor.h>
25 25
26struct thread_info { 26struct thread_info {
27 struct task_struct *task; /* main task structure */ 27 struct task_struct *task; /* main task structure */