mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-09 02:06:28 +00:00
amd-gpu: remove addtimestamp ioctl as it has no userspace users
(except libkgsl which needs kicking to remove the call)
This commit is contained in:
@@ -462,7 +462,6 @@ done:
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
static int kgsl_ioctl_device_setproperty(struct file *fd, void __user *arg)
|
||||
{
|
||||
int result;
|
||||
@@ -955,6 +954,7 @@ static int kgsl_ioctl_drawctxt_bind_gmem_shadow(struct file *fd, void __user *ar
|
||||
return status;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int kgsl_ioctl_add_timestamp(struct file *fd, void __user *arg)
|
||||
{
|
||||
struct kgsl_add_timestamp param;
|
||||
@@ -973,6 +973,7 @@ static int kgsl_ioctl_add_timestamp(struct file *fd, void __user *arg)
|
||||
}
|
||||
return GSL_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int kgsl_ioctl(struct inode *inode, struct file *fd, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
@@ -1061,9 +1062,9 @@ static int kgsl_ioctl(struct inode *inode, struct file *fd, unsigned int cmd, un
|
||||
case IOCTL_KGSL_DRAWCTXT_BIND_GMEM_SHADOW:
|
||||
result = kgsl_ioctl_drawctxt_bind_gmem_shadow(fd, (void __user *) arg);
|
||||
break;
|
||||
case IOCTL_KGSL_ADD_TIMESTAMP:
|
||||
result = kgsl_ioctl_add_timestamp(fd, (void __user *) arg);
|
||||
break;
|
||||
// case IOCTL_KGSL_ADD_TIMESTAMP:
|
||||
// result = kgsl_ioctl_add_timestamp(fd, (void __user *) arg);
|
||||
// break;
|
||||
default:
|
||||
pr_err("%s: invalid ioctl code %08x\n", __func__, cmd);
|
||||
result = -ENOTTY;
|
||||
|
||||
@@ -487,13 +487,13 @@ struct kgsl_sharedmem_fromhostpointer {
|
||||
_IOW(KGSL_IOC_TYPE, 0x38, struct kgsl_sharedmem_fromhostpointer)
|
||||
|
||||
/* NQ */
|
||||
struct kgsl_add_timestamp {
|
||||
unsigned int device_id;
|
||||
unsigned int *timestamp;
|
||||
};
|
||||
|
||||
#define IOCTL_KGSL_ADD_TIMESTAMP \
|
||||
_IOWR(KGSL_IOC_TYPE, 0x39, struct kgsl_add_timestamp)
|
||||
//struct kgsl_add_timestamp {
|
||||
// unsigned int device_id;
|
||||
// unsigned int *timestamp;
|
||||
//};
|
||||
//
|
||||
//#define IOCTL_KGSL_ADD_TIMESTAMP \
|
||||
// _IOWR(KGSL_IOC_TYPE, 0x39, struct kgsl_add_timestamp)
|
||||
|
||||
/* NQ */
|
||||
#define IOCTL_KGSL_DRIVER_EXIT \
|
||||
|
||||
Reference in New Issue
Block a user