userspace: units: replace PAGE_SIZE with NVGPU_CPU_PAGE_SIZE

Replace PAGE_SIZE with NVGPU_CPU_PAGE_SIZE, which is a nvgpu defined wrapper
over OS native page size.

Bug 200658101
Jira NVGPU-6018

Change-Id: If35e23d5df38a6b52b586911d1055e0b00b12ebe
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2424792
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Antony Clince Alex
2020-10-07 22:50:21 +05:30
committed by Alex Waterman
parent 223baa5883
commit 09857ecd91
6 changed files with 21 additions and 21 deletions

View File

@@ -439,7 +439,7 @@ int test_align_macros(struct unit_module *m,
test1 = PAGE_ALIGN_TEST_VALUE;
result = PAGE_ALIGN(test1);
if (result & (PAGE_SIZE - 1)) {
if (result & (NVGPU_CPU_PAGE_SIZE - 1)) {
unit_return_fail(m,
"PAGE_ALIGN failure %x\n", result);
}