diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-01-16 07:20:16 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-18 19:47:32 -0500 |
commit | bf0a666be02a63c78849a36eae37cae6c49aa437 (patch) | |
tree | 86fb69b95ddb95b101e55173015050c079d2bdd9 /drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |
parent | bbea338b44ba72bb96cc79789daabec7e7a56f07 (diff) |
gpu: nvgpu: fix dev_info typo in refcount tracking
The recently added refcount tracking support had a slight mishap in
refactoring some printks. Fix a typo to make the support compile again
when enabled.
Bug 1826754
Change-Id: Ifd76d644932fa219751db82a0beb3c8482ea68c3
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1285922
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index d36b5d34..2f71e13a 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -1081,7 +1081,7 @@ static void gk20a_channel_dump_ref_actions(struct channel_gk20a *ch) | |||
1081 | 1081 | ||
1082 | spin_lock(&ch->ref_actions_lock); | 1082 | spin_lock(&ch->ref_actions_lock); |
1083 | 1083 | ||
1084 | dev_info(d, "ch %d: refs %d. Actions, most recent last:\n", | 1084 | dev_info(dev, "ch %d: refs %d. Actions, most recent last:\n", |
1085 | ch->hw_chid, atomic_read(&ch->ref_count)); | 1085 | ch->hw_chid, atomic_read(&ch->ref_count)); |
1086 | 1086 | ||
1087 | /* start at the oldest possible entry. put is next insertion point */ | 1087 | /* start at the oldest possible entry. put is next insertion point */ |
@@ -1095,7 +1095,7 @@ static void gk20a_channel_dump_ref_actions(struct channel_gk20a *ch) | |||
1095 | struct channel_gk20a_ref_action *act = &ch->ref_actions[get]; | 1095 | struct channel_gk20a_ref_action *act = &ch->ref_actions[get]; |
1096 | 1096 | ||
1097 | if (act->trace.nr_entries) { | 1097 | if (act->trace.nr_entries) { |
1098 | dev_info(d, "%s ref %zu steps ago (age %d ms, diff %d ms)\n", | 1098 | dev_info(dev, "%s ref %zu steps ago (age %d ms, diff %d ms)\n", |
1099 | act->type == channel_gk20a_ref_action_get | 1099 | act->type == channel_gk20a_ref_action_get |
1100 | ? "GET" : "PUT", | 1100 | ? "GET" : "PUT", |
1101 | GK20A_CHANNEL_REFCOUNT_TRACKING - 1 - i, | 1101 | GK20A_CHANNEL_REFCOUNT_TRACKING - 1 - i, |