mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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:
committed by
Alex Waterman
parent
223baa5883
commit
09857ecd91
@@ -51,7 +51,7 @@ static int init_syncpt_mem(struct unit_module *m, struct gk20a *g)
|
||||
int err;
|
||||
if (!nvgpu_mem_is_valid(&g->syncpt_mem)) {
|
||||
nr_pages = U64(DIV_ROUND_UP(g->syncpt_unit_size,
|
||||
PAGE_SIZE));
|
||||
NVGPU_CPU_PAGE_SIZE));
|
||||
err = nvgpu_mem_create_from_phys(g, &g->syncpt_mem,
|
||||
g->syncpt_unit_base, nr_pages);
|
||||
if (err != 0) {
|
||||
|
||||
Reference in New Issue
Block a user