mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: compile out unreachable code in unit testing
Make use of the POSIX flag to compile out a BPMP-related print that cannot occur in posix builds. JIRA NVGPU-932 Change-Id: I4373b9d0d486316dbae3a555f6887361ec54ea29 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2259665 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
0285ca6d98
commit
ce6fc269a1
@@ -48,15 +48,15 @@
|
|||||||
|
|
||||||
static void gv11b_init_nvlink_soc_credits(struct gk20a *g)
|
static void gv11b_init_nvlink_soc_credits(struct gk20a *g)
|
||||||
{
|
{
|
||||||
|
#ifndef __NVGPU_POSIX__
|
||||||
if (nvgpu_is_bpmp_running(g) && (!nvgpu_platform_is_simulation(g))) {
|
if (nvgpu_is_bpmp_running(g) && (!nvgpu_platform_is_simulation(g))) {
|
||||||
nvgpu_log(g, gpu_dbg_info, "nvlink soc credits init done by bpmp");
|
nvgpu_log(g, gpu_dbg_info, "nvlink soc credits init done by bpmp");
|
||||||
} else {
|
} else {
|
||||||
#ifndef __NVGPU_POSIX__
|
|
||||||
#ifdef CONFIG_NVGPU_NVLINK
|
#ifdef CONFIG_NVGPU_NVLINK
|
||||||
nvgpu_mss_nvlink_init_credits(g);
|
nvgpu_mss_nvlink_init_credits(g);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gv11b_fb_set_atomic_mode(struct gk20a *g)
|
static void gv11b_fb_set_atomic_mode(struct gk20a *g)
|
||||||
|
|||||||
Reference in New Issue
Block a user