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 <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Ingo Molnar
parent
053de04441
commit
746ff60f26
@@ -71,6 +71,12 @@ static inline void pack_gate(gate_desc *gate, unsigned char type,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static inline int desc_empty(const void *ptr)
|
||||||
|
{
|
||||||
|
const u32 *desc = ptr;
|
||||||
|
return !(desc[0] | desc[1]);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PARAVIRT
|
#ifdef CONFIG_PARAVIRT
|
||||||
#include <asm/paravirt.h>
|
#include <asm/paravirt.h>
|
||||||
#else
|
#else
|
||||||
|
@@ -21,12 +21,6 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <asm/desc_defs.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
|
* Default implementation of macro that returns current
|
||||||
* instruction pointer ("program counter").
|
* instruction pointer ("program counter").
|
||||||
|
@@ -20,12 +20,6 @@
|
|||||||
#include <linux/cpumask.h>
|
#include <linux/cpumask.h>
|
||||||
#include <asm/desc_defs.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
|
* Default implementation of macro that returns current
|
||||||
* instruction pointer ("program counter").
|
* instruction pointer ("program counter").
|
||||||
|
Reference in New Issue
Block a user