diff options
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index 456246bf..368bacc2 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -395,7 +395,7 @@ static int nvgpu_clk_arb_update_vf_table(struct nvgpu_clk_arb *arb) | |||
395 | 395 | ||
396 | /* make table visible when all data has resolved in the tables */ | 396 | /* make table visible when all data has resolved in the tables */ |
397 | nvgpu_smp_wmb(); | 397 | nvgpu_smp_wmb(); |
398 | xchg(&arb->current_vf_table, table); | 398 | arb->current_vf_table = table; |
399 | 399 | ||
400 | exit_vf_table: | 400 | exit_vf_table: |
401 | 401 | ||
@@ -800,7 +800,7 @@ static void nvgpu_clk_arb_run_arbiter_cb(struct nvgpu_clk_arb *arb) | |||
800 | nvgpu_list_add(&dev->node, &arb->requests); | 800 | nvgpu_list_add(&dev->node, &arb->requests); |
801 | nvgpu_spinlock_release(&arb->requests_lock); | 801 | nvgpu_spinlock_release(&arb->requests_lock); |
802 | } | 802 | } |
803 | xchg(&session->target, target); | 803 | session->target = target; |
804 | } | 804 | } |
805 | nvgpu_spinlock_release(&session->session_lock); | 805 | nvgpu_spinlock_release(&session->session_lock); |
806 | 806 | ||
@@ -933,7 +933,7 @@ static void nvgpu_clk_arb_run_arbiter_cb(struct nvgpu_clk_arb *arb) | |||
933 | 933 | ||
934 | /* Make changes visible to other threads */ | 934 | /* Make changes visible to other threads */ |
935 | nvgpu_smp_wmb(); | 935 | nvgpu_smp_wmb(); |
936 | xchg(&arb->actual, actual); | 936 | arb->actual = actual; |
937 | 937 | ||
938 | status = nvgpu_lpwr_enable_pg(g, false); | 938 | status = nvgpu_lpwr_enable_pg(g, false); |
939 | if (status < 0) { | 939 | if (status < 0) { |
@@ -988,7 +988,7 @@ static void nvgpu_clk_arb_run_arbiter_cb(struct nvgpu_clk_arb *arb) | |||
988 | } | 988 | } |
989 | /* commit changes before exchanging debug pointer */ | 989 | /* commit changes before exchanging debug pointer */ |
990 | nvgpu_smp_wmb(); | 990 | nvgpu_smp_wmb(); |
991 | xchg(&arb->debug, debug); | 991 | arb->debug = debug; |
992 | #endif | 992 | #endif |
993 | 993 | ||
994 | exit_arb: | 994 | exit_arb: |