mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 02:07:34 +03:00
tegra: hwpm: Modify OS common code for QNX
Modify the OS common code to be used by HWPM QNX resource manager. JIRA THWPM-44 Change-Id: Ibade56d3d94ce4d7e014e199963e2ddf568e7d3a Signed-off-by: vasukis <vasukis@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2858465 Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Vivek Bangera <vbangera@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8b861518c4
commit
b27a32e7f0
@@ -28,16 +28,7 @@
|
||||
#include <linux/bits.h>
|
||||
#include <os/linux/log.h>
|
||||
#else
|
||||
void tegra_hwpm_err_impl(struct tegra_soc_hwpm *hwpm,
|
||||
const char *func, int line, const char *fmt, ...)
|
||||
{
|
||||
return;
|
||||
}
|
||||
void tegra_hwpm_dbg_impl(struct tegra_soc_hwpm *hwpm,
|
||||
u32 dbg_mask, const char *func, int line, const char *fmt, ...)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#include <os/qnx/log.h>
|
||||
#endif
|
||||
|
||||
#define TEGRA_SOC_HWPM_MODULE_NAME "tegra-soc-hwpm"
|
||||
@@ -85,6 +76,7 @@ enum tegra_soc_hwpm_log_type {
|
||||
/* Kmem debug prints */
|
||||
#define hwpm_dbg_kmem BIT(17)
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#define tegra_hwpm_err(hwpm, fmt, arg...) \
|
||||
tegra_hwpm_err_impl(hwpm, __func__, __LINE__, fmt, ##arg)
|
||||
@@ -92,5 +84,13 @@ enum tegra_soc_hwpm_log_type {
|
||||
tegra_hwpm_dbg_impl(hwpm, dbg_mask, __func__, __LINE__, fmt, ##arg)
|
||||
#define tegra_hwpm_fn(hwpm, fmt, arg...) \
|
||||
tegra_hwpm_dbg_impl(hwpm, hwpm_fn, __func__, __LINE__, fmt, ##arg)
|
||||
#else
|
||||
#define tegra_hwpm_err(hwpm, fmt, arg...) \
|
||||
tegra_hwpm_err_impl(hwpm, fmt, ##arg)
|
||||
#define tegra_hwpm_dbg(hwpm, dbg_mask, fmt, arg...) \
|
||||
tegra_hwpm_dbg_impl(hwpm, dbg_mask, fmt, ##arg)
|
||||
#define tegra_hwpm_fn(hwpm, fmt, arg...) \
|
||||
tegra_hwpm_dbg_impl(hwpm, hwpm_fn, fmt, ##arg)
|
||||
#endif
|
||||
|
||||
#endif /* TEGRA_HWPM_LOG_H */
|
||||
|
||||
Reference in New Issue
Block a user