Files
linux-nv-oot/include/uapi/linux/tegra_hv_vcpu_yield_ioctl.h
brucex ced8d91df7 tegra_hv_vcpu_yield_ioctl: Fix header #ifdef
Incorrect header protection led to build error with clang (used to build
android common kernel)

Bug 3974840

Signed-off-by: Bruce Xu <brucex@nvidia.com>
Change-Id: I3a6ba014fbad24561ef5f46b313596876c227a49
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2895935
(cherry picked from commit 49dc6cf08e312d1bb0900ea890e22cd931c25f39)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859501
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Shardar Mohammed <smohammed@nvidia.com>
2023-05-29 03:55:41 -07:00

24 lines
674 B
C

/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note)
*
* Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef _UAPI_TEGRA_HV_VCPU_YIELD_IOCTL_H_
#define _UAPI_TEGRA_HV_VCPU_YIELD_IOCTL_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_ */