mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: remove round_up usage in safety build
- In function gv11b_tsg_init_eng_method_buffers() PAGE_ALIGN can be used instead of round_up macro. - In function nvgpu_posix_find_next_bit() rounding up of start does not seem to serve any purpose. JIRA NVGPU-7057 Change-Id: I4a3a21e95a0f3aa38f7007de1f6959f1d878e511 Signed-off-by: shashank singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2614326 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2672107 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
6c46173be3
commit
29019dff6e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -460,7 +460,7 @@ int test_round_macros(struct unit_module *m,
|
||||
"round_mask failure %d\n", result);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
||||
result = ROUND_BY_VALUE;
|
||||
for (i = 0; i < ROUND_BY_VALUE; i++) {
|
||||
test1 = (ROUND_DOWN_RESULT + 1U) + i;
|
||||
@@ -468,6 +468,7 @@ int test_round_macros(struct unit_module *m,
|
||||
unit_return_fail(m, "round_up failure %d %d\n", test1, i);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
result = ROUND_BY_VALUE;
|
||||
for (i = 0; i < ROUND_BY_VALUE; i++) {
|
||||
|
||||
Reference in New Issue
Block a user