diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index f1ae2f1f..c8519905 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -43,7 +43,7 @@ static void vgpu_channel_bind(struct channel_gk20a *ch) | |||
43 | WARN_ON(err || msg.ret); | 43 | WARN_ON(err || msg.ret); |
44 | 44 | ||
45 | wmb(); | 45 | wmb(); |
46 | atomic_set(&ch->bound, true); | 46 | nvgpu_atomic_set(&ch->bound, true); |
47 | } | 47 | } |
48 | 48 | ||
49 | static void vgpu_channel_unbind(struct channel_gk20a *ch) | 49 | static void vgpu_channel_unbind(struct channel_gk20a *ch) |
@@ -51,7 +51,7 @@ static void vgpu_channel_unbind(struct channel_gk20a *ch) | |||
51 | 51 | ||
52 | gk20a_dbg_fn(""); | 52 | gk20a_dbg_fn(""); |
53 | 53 | ||
54 | if (atomic_cmpxchg(&ch->bound, true, false)) { | 54 | if (nvgpu_atomic_cmpxchg(&ch->bound, true, false)) { |
55 | struct tegra_vgpu_cmd_msg msg; | 55 | struct tegra_vgpu_cmd_msg msg; |
56 | struct tegra_vgpu_channel_config_params *p = | 56 | struct tegra_vgpu_channel_config_params *p = |
57 | &msg.params.channel_config; | 57 | &msg.params.channel_config; |
@@ -425,7 +425,7 @@ static int vgpu_fifo_preempt_channel(struct gk20a *g, u32 chid) | |||
425 | 425 | ||
426 | gk20a_dbg_fn(""); | 426 | gk20a_dbg_fn(""); |
427 | 427 | ||
428 | if (!atomic_read(&ch->bound)) | 428 | if (!nvgpu_atomic_read(&ch->bound)) |
429 | return 0; | 429 | return 0; |
430 | 430 | ||
431 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_PREEMPT; | 431 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_PREEMPT; |