Skip to content

Commit 9804634

Browse files
author
Fox Snowpatch
committed
1 parent 56e2adc commit 9804634

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

arch/powerpc/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ config PPC
176176
select ARCH_WANT_IPC_PARSE_VERSION
177177
select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
178178
select ARCH_WANT_LD_ORPHAN_WARN
179+
select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
179180
select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP if PPC_RADIX_MMU
180181
select ARCH_WANTS_MODULES_DATA_IN_VMALLOC if PPC_BOOK3S_32 || PPC_8xx
181182
select ARCH_WEAK_RELEASE_ACQUIRE

arch/powerpc/include/asm/tlbbatch.h

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef _ARCH_PPC_TLBBATCH_H
3+
#define _ARCH_PPC_TLBBATCH_H
4+
5+
struct arch_tlbflush_unmap_batch {
6+
/*
7+
*
8+
*/
9+
};
10+
11+
static inline void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch)
12+
{
13+
}
14+
15+
static inline void arch_tlbbatch_add_pending(struct arch_tlbflush_unmap_batch *batch,
16+
struct mm_struct *mm,
17+
unsigned long uarddr)
18+
{
19+
}
20+
21+
static inline bool arch_tlbbatch_should_defer(struct mm_struct *mm)
22+
{
23+
/*ppc always do tlb flush in batch*/
24+
return false;
25+
}
26+
27+
static inline void arch_flush_tlb_batched_pending(struct mm_struct *mm)
28+
{
29+
}
30+
#endif /* _ARCH_PPC_TLBBATCH_H */

0 commit comments

Comments
 (0)