summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/context.c
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-04-25 20:15:42 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-04-25 20:15:42 +0300
commit027d35d0b6999c02de4c1ef86d0df4b5f4119167 (patch)
tree74e70b9af7581129620caec9b534574639a39cd4 /drivers/misc/habanalabs/context.c
parentb2377e032f17c3dd87739a97699f144ed00edf05 (diff)
downloadlinux-027d35d0b6999c02de4c1ef86d0df4b5f4119167.tar.gz
linux-027d35d0b6999c02de4c1ef86d0df4b5f4119167.tar.bz2
linux-027d35d0b6999c02de4c1ef86d0df4b5f4119167.zip
habanalabs: rename restore to ctx_switch when appropriate
This patch only does renaming of certain variables and structure members, and their accompanied comments. This is done to better reflect the actions these variables and members represent. There is no functional change in this patch. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/context.c')
-rw-r--r--drivers/misc/habanalabs/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/context.c b/drivers/misc/habanalabs/context.c
index 619ace1c4ef7..4804cdcf4c48 100644
--- a/drivers/misc/habanalabs/context.c
+++ b/drivers/misc/habanalabs/context.c
@@ -106,8 +106,8 @@ int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx)
ctx->cs_sequence = 1;
spin_lock_init(&ctx->cs_lock);
- atomic_set(&ctx->thread_restore_token, 1);
- ctx->thread_restore_wait_token = 0;
+ atomic_set(&ctx->thread_ctx_switch_token, 1);
+ ctx->thread_ctx_switch_wait_token = 0;
if (is_kernel_ctx) {
ctx->asid = HL_KERNEL_ASID_ID; /* KMD gets ASID 0 */