mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gk20a_err() and gk20a_warn() require a struct device pointer, which is not portable across operating systems. The new nvgpu_err() and nvgpu_warn() macros take struct gk20a pointer. Convert code to use the more portable macros. JIRA NVGPU-16 Change-Id: I50bab058076c6896acfc6fa82f78f52a949dd3cf Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1457354 Reviewed-by: Alex Waterman <alexw@nvidia.com>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#include "gk20a/gk20a.h"
|
|
#include "thrm.h"
|
|
#include "thrmpmu.h"
|
|
|
|
u32 therm_domain_sw_setup(struct gk20a *g)
|
|
{
|
|
u32 status;
|
|
|
|
status = therm_device_sw_setup(g);
|
|
if (status) {
|
|
nvgpu_err(g,
|
|
"error creating boardobjgrp for therm devices, status - 0x%x",
|
|
status);
|
|
goto exit;
|
|
}
|
|
|
|
status = therm_channel_sw_setup(g);
|
|
if (status) {
|
|
nvgpu_err(g,
|
|
"error creating boardobjgrp for therm channel, status - 0x%x",
|
|
status);
|
|
goto exit;
|
|
}
|
|
|
|
exit:
|
|
return status;
|
|
}
|
|
|
|
u32 therm_domain_pmu_setup(struct gk20a *g)
|
|
{
|
|
return therm_send_pmgr_tables_to_pmu(g);
|
|
}
|