-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This moves the nohash variant of pgalloc headers to nohash/ directory Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
- Loading branch information
Aneesh Kumar K.V
authored and
Michael Ellerman
committed
May 11, 2016
1 parent
101ad5c
commit 75a9b8a
Showing
7 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _ASM_POWERPC_BOOK3S_PGALLOC_H | ||
#define _ASM_POWERPC_BOOK3S_PGALLOC_H | ||
|
||
#include <linux/mm.h> | ||
|
||
extern void tlb_remove_table(struct mmu_gather *tlb, void *table); | ||
static inline void tlb_flush_pgtable(struct mmu_gather *tlb, | ||
unsigned long address) | ||
{ | ||
|
||
} | ||
|
||
#ifdef CONFIG_PPC64 | ||
#include <asm/book3s/64/pgalloc.h> | ||
#else | ||
#include <asm/book3s/32/pgalloc.h> | ||
#endif | ||
|
||
#endif /* _ASM_POWERPC_BOOK3S_PGALLOC_H */ |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef _ASM_POWERPC_NOHASH_PGALLOC_H | ||
#define _ASM_POWERPC_NOHASH_PGALLOC_H | ||
|
||
#include <linux/mm.h> | ||
|
||
extern void tlb_remove_table(struct mmu_gather *tlb, void *table); | ||
#ifdef CONFIG_PPC64 | ||
extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address); | ||
#else | ||
/* 44x etc which is BOOKE not BOOK3E */ | ||
static inline void tlb_flush_pgtable(struct mmu_gather *tlb, | ||
unsigned long address) | ||
{ | ||
|
||
} | ||
#endif /* !CONFIG_PPC_BOOK3E */ | ||
|
||
#ifdef CONFIG_PPC64 | ||
#include <asm/nohash/64/pgalloc.h> | ||
#else | ||
#include <asm/nohash/32/pgalloc.h> | ||
#endif | ||
#endif /* _ASM_POWERPC_NOHASH_PGALLOC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
#ifndef _ASM_POWERPC_PGALLOC_H | ||
#define _ASM_POWERPC_PGALLOC_H | ||
#ifdef __KERNEL__ | ||
|
||
#include <linux/mm.h> | ||
|
||
#ifdef CONFIG_PPC_BOOK3E | ||
extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address); | ||
#else /* CONFIG_PPC_BOOK3E */ | ||
static inline void tlb_flush_pgtable(struct mmu_gather *tlb, | ||
unsigned long address) | ||
{ | ||
} | ||
#endif /* !CONFIG_PPC_BOOK3E */ | ||
|
||
extern void tlb_remove_table(struct mmu_gather *tlb, void *table); | ||
|
||
#ifdef CONFIG_PPC64 | ||
#include <asm/pgalloc-64.h> | ||
#ifdef CONFIG_PPC_BOOK3S | ||
#include <asm/book3s/pgalloc.h> | ||
#else | ||
#include <asm/pgalloc-32.h> | ||
#include <asm/nohash/pgalloc.h> | ||
#endif | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* _ASM_POWERPC_PGALLOC_H */ |