Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
GuanXuetao | b50f170 | 2011-01-15 18:16:59 +0800 | [diff] [blame] | 2 | /* |
| 3 | * linux/arch/unicore32/include/asm/tlb.h |
| 4 | * |
| 5 | * Code specific to PKUnity SoC and UniCore ISA |
| 6 | * |
| 7 | * Copyright (C) 2001-2010 GUAN Xue-tao |
GuanXuetao | b50f170 | 2011-01-15 18:16:59 +0800 | [diff] [blame] | 8 | */ |
| 9 | #ifndef __UNICORE_TLB_H__ |
| 10 | #define __UNICORE_TLB_H__ |
| 11 | |
Peter Zijlstra | 6137fed | 2018-09-04 17:04:07 +0200 | [diff] [blame] | 12 | /* |
| 13 | * unicore32 lacks an efficient flush_tlb_range(), use flush_tlb_mm(). |
| 14 | */ |
GuanXuetao | b50f170 | 2011-01-15 18:16:59 +0800 | [diff] [blame] | 15 | |
GuanXuetao | 289d6b0 | 2011-03-04 20:00:11 +0800 | [diff] [blame] | 16 | #define __pte_free_tlb(tlb, pte, addr) \ |
| 17 | do { \ |
| 18 | pgtable_page_dtor(pte); \ |
| 19 | tlb_remove_page((tlb), (pte)); \ |
| 20 | } while (0) |
GuanXuetao | b50f170 | 2011-01-15 18:16:59 +0800 | [diff] [blame] | 21 | |
GuanXuetao | 289d6b0 | 2011-03-04 20:00:11 +0800 | [diff] [blame] | 22 | #include <asm-generic/tlb.h> |
GuanXuetao | b50f170 | 2011-01-15 18:16:59 +0800 | [diff] [blame] | 23 | |
| 24 | #endif |