tlbflush.h (1809de7e7d37c585e01a1bcc583ea92b78fc759d) tlbflush.h (c109bf95992b391bb40bc37c5d309d13fead99b5)
1#ifndef _ASM_X86_TLBFLUSH_H
2#define _ASM_X86_TLBFLUSH_H
3
4#include <linux/mm.h>
5#include <linux/sched.h>
6
7#include <asm/processor.h>
8#include <asm/cpufeature.h>

--- 167 unchanged lines hidden (view full) ---

176
177static inline void __native_flush_tlb_single(unsigned long addr)
178{
179 asm volatile("invlpg (%0)" ::"r" (addr) : "memory");
180}
181
182static inline void __flush_tlb_all(void)
183{
1#ifndef _ASM_X86_TLBFLUSH_H
2#define _ASM_X86_TLBFLUSH_H
3
4#include <linux/mm.h>
5#include <linux/sched.h>
6
7#include <asm/processor.h>
8#include <asm/cpufeature.h>

--- 167 unchanged lines hidden (view full) ---

176
177static inline void __native_flush_tlb_single(unsigned long addr)
178{
179 asm volatile("invlpg (%0)" ::"r" (addr) : "memory");
180}
181
182static inline void __flush_tlb_all(void)
183{
184 if (cpu_has_pge)
184 if (static_cpu_has(X86_FEATURE_PGE))
185 __flush_tlb_global();
186 else
187 __flush_tlb();
188}
189
190static inline void __flush_tlb_one(unsigned long addr)
191{
192 count_vm_tlb_event(NR_TLB_LOCAL_FLUSH_ONE);

--- 141 unchanged lines hidden ---
185 __flush_tlb_global();
186 else
187 __flush_tlb();
188}
189
190static inline void __flush_tlb_one(unsigned long addr)
191{
192 count_vm_tlb_event(NR_TLB_LOCAL_FLUSH_ONE);

--- 141 unchanged lines hidden ---