mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
virt: tegra: port vcpu yield to oot kernel
add support for tegra_hv_vcpu_yield driver in oot kernel JIRA ESLC-7041 Change-Id: I29b60ab141fb98be62614062ebf7a4214b812c87 Signed-off-by: Suresh Venkatachalam <skathirampat@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2810680 Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-by: Bharath H S <bhs@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
edc5ed31aa
commit
3daf6e0d8c
23
include/uapi/linux/tegra_hv_vcpu_yield_ioctl.h
Normal file
23
include/uapi/linux/tegra_hv_vcpu_yield_ioctl.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note)
|
||||
*
|
||||
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _UAPI_TEGRA_HV_VCPU_YIELD_IOCTL_H_
|
||||
#define _UAPI_TEGRA_EPL_H_
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#define VCPU_YIELD_IOC_MAGIC 'Y'
|
||||
#define VCPU_YIELD_START_CMDID 1
|
||||
|
||||
/* Control data for VCPU Yield Start ioctl */
|
||||
struct vcpu_yield_start_ctl {
|
||||
/* max time in micro seconds for which vcpu will be yielded */
|
||||
uint32_t timeout_us;
|
||||
};
|
||||
|
||||
#define VCPU_YIELD_START_IOCTL _IOW(VCPU_YIELD_IOC_MAGIC, \
|
||||
VCPU_YIELD_START_CMDID, struct vcpu_yield_start_ctl)
|
||||
|
||||
#endif /* #ifndef _UAPI_TEGRA_HV_VCPU_YIELD_IOCTL_H_ */
|
||||
Reference in New Issue
Block a user