hpriv->ctx = ctx;
 
        /* TODO: remove the following line for multiple process support */
-       hdev->compute_ctx = ctx;
+       hdev->is_compute_ctx_active = true;
 
        return 0;
 
 
                        || hdev->reset_upon_device_release)
                hl_device_reset(hdev, HL_DRV_RESET_DEV_RELEASE);
 
-       /* Now we can mark the compute_ctx as empty. Even if a reset is running in a different
+       /* Now we can mark the compute_ctx as not active. Even if a reset is running in a different
         * thread, we don't care because the in_reset is marked so if a user will try to open
-        * the device it will fail on that, even if compute_ctx is NULL.
+        * the device it will fail on that, even if compute_ctx is false.
         */
        mutex_lock(&hdev->fpriv_list_lock);
-       hdev->compute_ctx = NULL;
+       hdev->is_compute_ctx_active = false;
        mutex_unlock(&hdev->fpriv_list_lock);
 
        kfree(hpriv);
                        goto out_err;
                }
 
-               hdev->compute_ctx = NULL;
+               hdev->is_compute_ctx_active = false;
 
                rc = hl_ctx_init(hdev, hdev->kernel_ctx, true);
                if (rc) {
                goto mmu_fini;
        }
 
-       hdev->compute_ctx = NULL;
+       hdev->is_compute_ctx_active = false;
 
        hdev->asic_funcs->state_dump_init(hdev);
 
 
  * @fpriv_list: list of file private data structures. Each structure is created
  *              when a user opens the device
  * @fpriv_list_lock: protects the fpriv_list
- * @compute_ctx: current compute context executing.
  * @aggregated_cs_counters: aggregated cs counters among all contexts
  * @mmu_priv: device-specific MMU data.
  * @mmu_func: device-related MMU functions.
  *                        cases where Linux was not loaded to device CPU
  * @supports_wait_for_multi_cs: true if wait for multi CS is supported
  * @is_in_soft_reset: Device is currently in soft reset process.
+ * @is_compute_ctx_active: Whether there is an active compute context executing.
  */
 struct hl_device {
        struct pci_dev                  *pdev;
        struct list_head                fpriv_list;
        struct mutex                    fpriv_list_lock;
 
-       struct hl_ctx                   *compute_ctx;
-
        struct hl_cs_counters_atomic    aggregated_cs_counters;
 
        struct hl_mmu_priv              mmu_priv;
        u8                              supports_wait_for_multi_cs;
        u8                              stream_master_qid_arr_size;
        u8                              is_in_soft_reset;
+       u8                              is_compute_ctx_active;
 
        /* Parameters for bring-up */
        u64                             nic_ports_mask;
 
                goto out_err;
        }
 
-       if (hdev->compute_ctx) {
+       if (hdev->is_compute_ctx_active) {
                dev_dbg_ratelimited(hdev->dev,
                        "Can't open %s because another user is working on it\n",
                        dev_name(hdev->dev));
 
 // SPDX-License-Identifier: GPL-2.0
 
 /*
- * Copyright 2016-2019 HabanaLabs, Ltd.
+ * Copyright 2016-2021 HabanaLabs, Ltd.
  * All Rights Reserved.
  */
 
 
        mutex_lock(&hdev->fpriv_list_lock);
 
-       if (!hdev->compute_ctx)
+       if (!hdev->is_compute_ctx_active)
                goya_set_frequency(hdev, PLL_LOW);
 
        mutex_unlock(&hdev->fpriv_list_lock);
 
 // SPDX-License-Identifier: GPL-2.0
 
 /*
- * Copyright 2016-2019 HabanaLabs, Ltd.
+ * Copyright 2016-2021 HabanaLabs, Ltd.
  * All Rights Reserved.
  */
 
 
        mutex_lock(&hdev->fpriv_list_lock);
 
-       if (hdev->compute_ctx) {
+       if (hdev->is_compute_ctx_active) {
                dev_err(hdev->dev,
                        "Can't change PM profile while compute context is opened on the device\n");
                count = -EPERM;