From: Glauber de Oliveira Costa Date: Wed, 30 Jan 2008 12:31:27 +0000 (+0100) Subject: x86: move desc_empty to where they belong X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=746ff60f2627626fca0d8ddbf6b1f04d505782f4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86: move desc_empty to where they belong This patch moves the (duplicated) desc_empty implementation to desc.h, where the descriptor things belong. Signed-off-by: Glauber de Oliveira Costa Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h index e9356a852020..e17581ad8824 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 #else diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h index b9dbe4668e75..cadeffb54a72 100644 --- a/include/asm-x86/processor_32.h +++ b/include/asm-x86/processor_32.h @@ -21,12 +21,6 @@ #include #include -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 c49716a76644..acecef80a510 100644 --- a/include/asm-x86/processor_64.h +++ b/include/asm-x86/processor_64.h @@ -20,12 +20,6 @@ #include #include -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").