mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
powerpc/64s: Make use of H_RPTI_TYPE_ALL macro
Instead of opencoding, let's use the pre-defined macro (H_RPTI_TYPE_ALL) at the following places. Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org> Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/d1d32404d5f0d3e93cd0faad2298b7bfed31288f.1773078178.git.ritesh.list@gmail.com
This commit is contained in:
parent
f074059c7a
commit
24eb637840
|
|
@ -885,8 +885,7 @@ static void __flush_all_mm(struct mm_struct *mm, bool fullmm)
|
|||
} else if (type == FLUSH_TYPE_GLOBAL) {
|
||||
if (!mmu_has_feature(MMU_FTR_GTSE)) {
|
||||
unsigned long tgt = H_RPTI_TARGET_CMMU;
|
||||
unsigned long type = H_RPTI_TYPE_TLB | H_RPTI_TYPE_PWC |
|
||||
H_RPTI_TYPE_PRT;
|
||||
unsigned long type = H_RPTI_TYPE_ALL;
|
||||
|
||||
if (atomic_read(&mm->context.copros) > 0)
|
||||
tgt |= H_RPTI_TARGET_NMMU;
|
||||
|
|
@ -982,8 +981,7 @@ void radix__flush_tlb_kernel_range(unsigned long start, unsigned long end)
|
|||
{
|
||||
if (!mmu_has_feature(MMU_FTR_GTSE)) {
|
||||
unsigned long tgt = H_RPTI_TARGET_CMMU | H_RPTI_TARGET_NMMU;
|
||||
unsigned long type = H_RPTI_TYPE_TLB | H_RPTI_TYPE_PWC |
|
||||
H_RPTI_TYPE_PRT;
|
||||
unsigned long type = H_RPTI_TYPE_ALL;
|
||||
|
||||
pseries_rpt_invalidate(0, tgt, type, H_RPTI_PAGE_ALL,
|
||||
start, end);
|
||||
|
|
@ -1337,8 +1335,7 @@ void radix__flush_tlb_collapsed_pmd(struct mm_struct *mm, unsigned long addr)
|
|||
unsigned long tgt, type, pg_sizes;
|
||||
|
||||
tgt = H_RPTI_TARGET_CMMU;
|
||||
type = H_RPTI_TYPE_TLB | H_RPTI_TYPE_PWC |
|
||||
H_RPTI_TYPE_PRT;
|
||||
type = H_RPTI_TYPE_ALL;
|
||||
pg_sizes = psize_to_rpti_pgsize(mmu_virtual_psize);
|
||||
|
||||
if (atomic_read(&mm->context.copros) > 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user