Skip to content

Commit 69de6c1

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
x86/tlb: Move paravirt_tlb_remove_table() to the usage site
Move it where the only user is. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Alexandre Chartre <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 4b04e6c commit 69de6c1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

arch/x86/include/asm/tlbflush.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,4 @@ static inline void arch_tlbbatch_add_mm(struct arch_tlbflush_unmap_batch *batch,
421421

422422
extern void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch);
423423

424-
#ifndef CONFIG_PARAVIRT
425-
#define paravirt_tlb_remove_table(tlb, page) \
426-
tlb_remove_page(tlb, (void *)(page))
427-
#endif
428-
429424
#endif /* _ASM_X86_TLBFLUSH_H */

arch/x86/mm/pgtable.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ EXPORT_SYMBOL(physical_mask);
1919
#define PGTABLE_HIGHMEM 0
2020
#endif
2121

22+
#ifndef CONFIG_PARAVIRT
23+
static inline
24+
void paravirt_tlb_remove_table(struct mmu_gather *tlb, void *table)
25+
{
26+
tlb_remove_page(tlb, table);
27+
}
28+
#endif
29+
2230
gfp_t __userpte_alloc_gfp = GFP_PGTABLE_USER | PGTABLE_HIGHMEM;
2331

2432
pgtable_t pte_alloc_one(struct mm_struct *mm)

0 commit comments

Comments
 (0)