Files
linux-nv-oot/drivers/platform/tegra/dce/include/dce-thread.h
Laxman Dewangan b20c5f57e3 dce: Use SPDX license GPL 2.0-only format
Use SPDX license GPL-V2.0 format and change Nvidia
copyright year to include 2023.

Bug 4078035

Change-Id: Icc0060431eb8d9c470a44f4cee50913cc1d8048a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890656
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Arun Swain <arswain@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-21 11:41:56 -07:00

35 lines
665 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
*/
#ifndef DCE_THREAD_H
#define DCE_THREAD_H
#include <linux/sched.h>
struct task_struct;
struct dce_thread {
struct task_struct *task;
bool running;
int (*fn)(void *);
void *data;
};
struct dce_thread;
int dce_thread_create(struct dce_thread *thread,
void *data,
int (*threadfn)(void *data), const char *name);
void dce_thread_stop(struct dce_thread *thread);
bool dce_thread_should_stop(struct dce_thread *thread);
bool dce_thread_is_running(struct dce_thread *thread);
void dce_thread_join(struct dce_thread *thread);
#endif