mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
DCE-KMD: Use OS abstraction for atomic operations
- Replace linux specific implementation with OS absraction added to display/drivers JIRA TDS-16052 Change-Id: I089dd75954cb8cfa533a697dddc2ae9c501c26a0 Signed-off-by: anupamg <anupamg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3171169 Reviewed-by: Mahesh Kumar <mahkumar@nvidia.com> Reviewed-by: Arun Swain <arswain@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef DCE_CLIENT_IPC_INTERNAL_H
|
||||
#define DCE_CLIENT_IPC_INTERNAL_H
|
||||
|
||||
#include <linux/platform/tegra/dce/dce-client-ipc.h>
|
||||
#include <atomic.h>
|
||||
|
||||
/**
|
||||
* struct tegra_dce_client_ipc - Data Structure to hold client specific ipc
|
||||
@@ -33,7 +34,7 @@ struct tegra_dce_client_ipc {
|
||||
uint32_t int_type;
|
||||
struct tegra_dce *d;
|
||||
struct dce_cond recv_wait;
|
||||
atomic_t complete;
|
||||
os_atomic_t complete;
|
||||
tegra_dce_client_ipc_callback_t callback_fn;
|
||||
};
|
||||
|
||||
@@ -41,7 +42,7 @@ struct tegra_dce_client_ipc {
|
||||
struct dce_async_work {
|
||||
struct tegra_dce *d;
|
||||
struct work_struct async_event_work;
|
||||
atomic_t in_use;
|
||||
os_atomic_t in_use;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user