]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/e500: remove enc and ind fields from struct mmu_psize_def
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 2 Jul 2024 13:51:27 +0000 (15:51 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jul 2024 22:52:17 +0000 (15:52 -0700)
commite081c14744f4a93514069e1af1a7273d5451b909
tree9c8889eecf119bfc6b150f9b85ec527e05acfc48
parentb04c2da4ff89a06978da25c528378371b881e910
powerpc/e500: remove enc and ind fields from struct mmu_psize_def

enc field is hidden behind BOOK3E_PAGESZ_XX macros, and when you look
closer you realise that this field is nothing else than the value of shift
minus ten.

So remove enc field and calculate tsize from shift field.

Also remove inc field which is unused.

Link: https://lkml.kernel.org/r/e99136779b5b0829c2c60d37f305a1410c65cf9b.1719928057.git.christophe.leroy@csgroup.eu
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/include/asm/nohash/mmu-e500.h
arch/powerpc/mm/nohash/book3e_pgtable.c
arch/powerpc/mm/nohash/tlb.c
arch/powerpc/mm/nohash/tlb_64e.c