diff options
author | David Daney <david.daney@cavium.com> | 2014-05-28 17:52:13 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-06-02 06:34:20 -0400 |
commit | 18280edafef1b8ffc920743eddaf6cf6612b1509 (patch) | |
tree | 42136302ac56fb113d16de3128becd1fc6aed7a6 /arch/mips/mm/tlbex.c | |
parent | 90dfdc7ceb577c0d7b7635def3c62039a091e50d (diff) |
MIPS: Add code for new system 'paravirt'
For para-virtualized guests running under KVM or other equivalent
hypervisor.
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7004/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/tlbex.c')
-rw-r--r-- | arch/mips/mm/tlbex.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index af91f3ed1a82..e80e10bafc83 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -1250,17 +1250,13 @@ static void build_r4000_tlb_refill_handler(void) | |||
1250 | unsigned int final_len; | 1250 | unsigned int final_len; |
1251 | struct mips_huge_tlb_info htlb_info __maybe_unused; | 1251 | struct mips_huge_tlb_info htlb_info __maybe_unused; |
1252 | enum vmalloc64_mode vmalloc_mode __maybe_unused; | 1252 | enum vmalloc64_mode vmalloc_mode __maybe_unused; |
1253 | #ifdef CONFIG_64BIT | 1253 | |
1254 | bool is64bit = true; | ||
1255 | #else | ||
1256 | bool is64bit = false; | ||
1257 | #endif | ||
1258 | memset(tlb_handler, 0, sizeof(tlb_handler)); | 1254 | memset(tlb_handler, 0, sizeof(tlb_handler)); |
1259 | memset(labels, 0, sizeof(labels)); | 1255 | memset(labels, 0, sizeof(labels)); |
1260 | memset(relocs, 0, sizeof(relocs)); | 1256 | memset(relocs, 0, sizeof(relocs)); |
1261 | memset(final_handler, 0, sizeof(final_handler)); | 1257 | memset(final_handler, 0, sizeof(final_handler)); |
1262 | 1258 | ||
1263 | if (is64bit && (scratch_reg >= 0 || scratchpad_available()) && use_bbit_insns()) { | 1259 | if (IS_ENABLED(CONFIG_64BIT) && (scratch_reg >= 0 || scratchpad_available()) && use_bbit_insns()) { |
1264 | htlb_info = build_fast_tlb_refill_handler(&p, &l, &r, K0, K1, | 1260 | htlb_info = build_fast_tlb_refill_handler(&p, &l, &r, K0, K1, |
1265 | scratch_reg); | 1261 | scratch_reg); |
1266 | vmalloc_mode = refill_scratch; | 1262 | vmalloc_mode = refill_scratch; |