powerpc/mm/hash: Rename KERNEL_REGION_ID to LINEAR_MAP_REGION_ID
The region actually point to linear map. Rename the #define to clarify thati. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
a092a03fa9
commit
5f53d28608
@@ -89,7 +89,7 @@
|
||||
* Region IDs
|
||||
*/
|
||||
#define USER_REGION_ID 0
|
||||
#define KERNEL_REGION_ID 1
|
||||
#define LINEAR_MAP_REGION_ID 1
|
||||
#define VMALLOC_REGION_ID NON_LINEAR_REGION_ID(H_VMALLOC_START)
|
||||
#define IO_REGION_ID NON_LINEAR_REGION_ID(H_KERN_IO_START)
|
||||
#define VMEMMAP_REGION_ID NON_LINEAR_REGION_ID(H_VMEMMAP_START)
|
||||
@@ -120,7 +120,7 @@ static inline int get_region_id(unsigned long ea)
|
||||
return USER_REGION_ID;
|
||||
|
||||
if (ea < H_KERN_VIRT_START)
|
||||
return KERNEL_REGION_ID;
|
||||
return LINEAR_MAP_REGION_ID;
|
||||
|
||||
VM_BUG_ON(id != 0xc);
|
||||
BUILD_BUG_ON(NON_LINEAR_REGION_ID(H_VMALLOC_START) != 2);
|
||||
|
@@ -817,7 +817,7 @@ static inline unsigned long get_kernel_context(unsigned long ea)
|
||||
* Depending on Kernel config, kernel region can have one context
|
||||
* or more.
|
||||
*/
|
||||
if (region_id == KERNEL_REGION_ID) {
|
||||
if (region_id == LINEAR_MAP_REGION_ID) {
|
||||
/*
|
||||
* We already verified ea to be not beyond the addr limit.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user