diff options
-rw-r--r-- | include/asm-x86/desc.h | 6 | ||||
-rw-r--r-- | include/asm-x86/processor_32.h | 6 | ||||
-rw-r--r-- | include/asm-x86/processor_64.h | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h index e9356a85202..e17581ad882 100644 --- a/include/asm-x86/desc.h +++ b/include/asm-x86/desc.h @@ -71,6 +71,12 @@ static inline void pack_gate(gate_desc *gate, unsigned char type, #endif +static inline int desc_empty(const void *ptr) +{ + const u32 *desc = ptr; + return !(desc[0] | desc[1]); +} + #ifdef CONFIG_PARAVIRT #include <asm/paravirt.h> #else diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h index b9dbe4668e7..cadeffb54a7 100644 --- a/include/asm-x86/processor_32.h +++ b/include/asm-x86/processor_32.h @@ -21,12 +21,6 @@ #include <linux/init.h> #include <asm/desc_defs.h> -static inline int desc_empty(const void *ptr) -{ - const u32 *desc = ptr; - return !(desc[0] | desc[1]); -} - /* * Default implementation of macro that returns current * instruction pointer ("program counter"). diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h index c49716a7664..acecef80a51 100644 --- a/include/asm-x86/processor_64.h +++ b/include/asm-x86/processor_64.h @@ -20,12 +20,6 @@ #include <linux/cpumask.h> #include <asm/desc_defs.h> -static inline int desc_empty(const void *ptr) -{ - const u32 *desc = ptr; - return !(desc[0] | desc[1]); -} - /* * Default implementation of macro that returns current * instruction pointer ("program counter"). |