]> err.no Git - linux-2.6/blobdiff - include/asm-x86/processor_32.h
x86: move load_cr3 to a common place.
[linux-2.6] / include / asm-x86 / processor_32.h
index b9dbe4668e75d052128f9356975bcb005b963fcd..b586902acd85c1fb56bdb8a37e77315f7880e1bf 100644 (file)
 #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").
@@ -126,7 +120,6 @@ extern void detect_ht(struct cpuinfo_x86 *c);
 static inline void detect_ht(struct cpuinfo_x86 *c) {}
 #endif
 
-#define load_cr3(pgdir) write_cr3(__pa(pgdir))
 
 /*
  * Save the cr4 feature set we're using (ie