DCE-KMD: Update DCE OS abstraction - Part 6

Module covered: dce-workqueue

This is not a functional change. It does the following:
1) Move include/dce-workqueue.h to
   os/linux/include/dce-os-work.h

2) s/dce_work/dce_os_work/g

3) s/dce_init_work/dce_os_work_init/g

4) s/dce_schedule_work/dce_os_work_schedule/g

5) Remove intermediate os header os/include/os-dce-workqueue.h
   and replace all includes directly with <dce-os-work.h>

JIRA TDS-16126

Change-Id: I4d88cf68a187a061fd0c8c084ea074fb9e74d315
Signed-off-by: anupamg <anupamg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3228552
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Mahesh Kumar <mahkumar@nvidia.com>
Reviewed-by: Arun Swain <arswain@nvidia.com>
This commit is contained in:
anupamg
2024-10-12 00:03:49 +00:00
committed by Jon Hunter
parent 9f31ca7c42
commit c0e60a639a
8 changed files with 42 additions and 72 deletions

View File

@@ -625,36 +625,36 @@ void dce_os_usleep_range(unsigned long min, unsigned long max)
}
/*
* dce_schedule_work : schedule work in global highpri workqueue
* dce_os_work_schedule : schedule work in global highpri workqueue
*
* @work : dce work to be scheduled
*
* Return : void
*/
void dce_schedule_work(struct dce_work_struct *work)
void dce_os_work_schedule(struct dce_os_work_struct *work)
{
queue_work(system_highpri_wq, &work->work);
}
/*
* dce_work_handle_fn : handler function for scheduled dce-work
* dce_os_work_handle_fn : handler function for scheduled dce-work
*
* @work : Pointer to the scheduled work
*
* Return : void
*/
static void dce_work_handle_fn(struct work_struct *work)
static void dce_os_work_handle_fn(struct work_struct *work)
{
struct dce_work_struct *dce_work = container_of(work,
struct dce_work_struct,
struct dce_os_work_struct *dce_os_work = container_of(work,
struct dce_os_work_struct,
work);
if (dce_work->dce_work_fn != NULL)
dce_work->dce_work_fn(dce_work->d);
if (dce_os_work->dce_os_work_fn != NULL)
dce_os_work->dce_os_work_fn(dce_os_work->d);
}
/*
* dce_init_work : Init dce work structure
* dce_os_work_init : Init dce work structure
*
* @d : Pointer to tegra_dce struct.
* @work : Pointer to dce work structure
@@ -662,14 +662,14 @@ static void dce_work_handle_fn(struct work_struct *work)
*
* Return : 0 if successful
*/
int dce_init_work(struct tegra_dce *d,
struct dce_work_struct *work,
int dce_os_work_init(struct tegra_dce *d,
struct dce_os_work_struct *work,
void (*work_fn)(struct tegra_dce *d))
{
work->d = d;
work->dce_work_fn = work_fn;
work->dce_os_work_fn = work_fn;
INIT_WORK(&work->work, dce_work_handle_fn);
INIT_WORK(&work->work, dce_os_work_handle_fn);
return 0;
}