Skip to content

Commit

Permalink
powerpc/mm: get rid of nohash/32/mmu.h and nohash/64/mmu.h
Browse files Browse the repository at this point in the history
Those files have no real added values, especially the 64 bit
which only includes the common book3e mmu.h which is also
included from 32 bits side.

So lets do the final inclusion directly from nohash/mmu.h

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed May 2, 2019
1 parent 696dffa commit 7a792d5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 33 deletions.
19 changes: 0 additions & 19 deletions arch/powerpc/include/asm/nohash/32/mmu.h

This file was deleted.

10 changes: 0 additions & 10 deletions arch/powerpc/include/asm/nohash/64/mmu.h

This file was deleted.

2 changes: 2 additions & 0 deletions arch/powerpc/include/asm/nohash/mmu-book3e.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ extern int book3e_htw_mode;

#define mmu_cleanup_all NULL

#define MAX_PHYSMEM_BITS 44

#endif

#endif /* !__ASSEMBLY__ */
Expand Down
16 changes: 12 additions & 4 deletions arch/powerpc/include/asm/nohash/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
#ifndef _ASM_POWERPC_NOHASH_MMU_H_
#define _ASM_POWERPC_NOHASH_MMU_H_

#ifdef CONFIG_PPC64
#include <asm/nohash/64/mmu.h>
#else
#include <asm/nohash/32/mmu.h>
#if defined(CONFIG_40x)
/* 40x-style software loaded TLB */
#include <asm/nohash/32/mmu-40x.h>
#elif defined(CONFIG_44x)
/* 44x-style software loaded TLB */
#include <asm/nohash/32/mmu-44x.h>
#elif defined(CONFIG_PPC_BOOK3E_MMU)
/* Freescale Book-E software loaded TLB or Book-3e (ISA 2.06+) MMU */
#include <asm/nohash/mmu-book3e.h>
#elif defined (CONFIG_PPC_8xx)
/* Motorola/Freescale 8xx software loaded TLB */
#include <asm/nohash/32/mmu-8xx.h>
#endif

#endif /* _ASM_POWERPC_NOHASH_MMU_H_ */

0 comments on commit 7a792d5

Please sign in to comment.