diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-30 10:44:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 22:04:19 -0400 |
commit | 3ba374a5d94f8c2067731155afaf79f03e6c390c (patch) | |
tree | d8a2bd0d52b1e8862510aedeb7529944c0b7e28e /drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |
parent | 2be51206af88aba6662cdd9de5bd6c18989bbcbd (diff) |
gpu: nvgpu: gk20a: Use new error macro
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: Ia51f36d94c5ce57a5a0ab83b3c83a6bce09e2d5c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1331694
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index b411cb5c..06c73b90 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include "clk_gk20a.h" | 31 | #include "clk_gk20a.h" |
32 | #include "gk20a_scale.h" | 32 | #include "gk20a_scale.h" |
33 | 33 | ||
34 | #include <nvgpu/log.h> | ||
35 | |||
34 | /* | 36 | /* |
35 | * gk20a_scale_qos_notify() | 37 | * gk20a_scale_qos_notify() |
36 | * | 38 | * |
@@ -59,8 +61,8 @@ int gk20a_scale_qos_notify(struct notifier_block *nb, | |||
59 | pm_qos_read_max_bound(PM_QOS_GPU_FREQ_BOUNDS) * 1000; | 61 | pm_qos_read_max_bound(PM_QOS_GPU_FREQ_BOUNDS) * 1000; |
60 | 62 | ||
61 | if (profile->qos_min_freq > profile->qos_max_freq) { | 63 | if (profile->qos_min_freq > profile->qos_max_freq) { |
62 | gk20a_err(g->dev, | 64 | nvgpu_err(g, |
63 | "QoS: setting invalid limit, min_freq=%lu max_freq=%lu\n", | 65 | "QoS: setting invalid limit, min_freq=%lu max_freq=%lu", |
64 | profile->qos_min_freq, profile->qos_max_freq); | 66 | profile->qos_min_freq, profile->qos_max_freq); |
65 | profile->qos_min_freq = profile->qos_max_freq; | 67 | profile->qos_min_freq = profile->qos_max_freq; |
66 | } | 68 | } |