]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/tlbflush.h
Merge branch 'x86/process' into x86/mm, to create new base for further patches
[karo-tx-linux.git] / arch / x86 / include / asm / tlbflush.h
index fc5abff9b7fd63d6b3a01a18061be8b3f752d109..75d002bdb3f35bcc12c06ec4acc213bc49241ae9 100644 (file)
@@ -110,6 +110,16 @@ static inline void cr4_clear_bits(unsigned long mask)
        }
 }
 
+static inline void cr4_toggle_bits(unsigned long mask)
+{
+       unsigned long cr4;
+
+       cr4 = this_cpu_read(cpu_tlbstate.cr4);
+       cr4 ^= mask;
+       this_cpu_write(cpu_tlbstate.cr4, cr4);
+       __write_cr4(cr4);
+}
+
 /* Read the CR4 shadow. */
 static inline unsigned long cr4_read_shadow(void)
 {