mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 16:01:14 +07:00
[PATCH] arch/i386/kernel/microcode.c: remove the obsolete microcode_ioctl
Nowadays, even Debian stable ships a microcode_ctl utility recent enough to no longer use this ioctl. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Tigran Aivazian <tigran_aivazian@symantec.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
50fc9999ec
commit
f45e4656ac
@ -78,8 +78,6 @@ Code Seq# Include File Comments
|
|||||||
'#' 00-3F IEEE 1394 Subsystem Block for the entire subsystem
|
'#' 00-3F IEEE 1394 Subsystem Block for the entire subsystem
|
||||||
'1' 00-1F <linux/timepps.h> PPS kit from Ulrich Windl
|
'1' 00-1F <linux/timepps.h> PPS kit from Ulrich Windl
|
||||||
<ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/>
|
<ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/>
|
||||||
'6' 00-10 <asm-i386/processor.h> Intel IA32 microcode update driver
|
|
||||||
<mailto:tigran@veritas.com>
|
|
||||||
'8' all SNP8023 advanced NIC card
|
'8' all SNP8023 advanced NIC card
|
||||||
<mailto:mcr@solidum.com>
|
<mailto:mcr@solidum.com>
|
||||||
'A' 00-1F linux/apm_bios.h
|
'A' 00-1F linux/apm_bios.h
|
||||||
|
@ -459,26 +459,9 @@ static ssize_t microcode_write (struct file *file, const char __user *buf, size_
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int microcode_ioctl (struct inode *inode, struct file *file,
|
|
||||||
unsigned int cmd, unsigned long arg)
|
|
||||||
{
|
|
||||||
switch (cmd) {
|
|
||||||
/*
|
|
||||||
* XXX: will be removed after microcode_ctl
|
|
||||||
* is updated to ignore failure of this ioctl()
|
|
||||||
*/
|
|
||||||
case MICROCODE_IOCFREE:
|
|
||||||
return 0;
|
|
||||||
default:
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct file_operations microcode_fops = {
|
static struct file_operations microcode_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.write = microcode_write,
|
.write = microcode_write,
|
||||||
.ioctl = microcode_ioctl,
|
|
||||||
.open = microcode_open,
|
.open = microcode_open,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -621,8 +621,6 @@ struct extended_sigtable {
|
|||||||
unsigned int reserved[3];
|
unsigned int reserved[3];
|
||||||
struct extended_signature sigs[0];
|
struct extended_signature sigs[0];
|
||||||
};
|
};
|
||||||
/* '6' because it used to be for P6 only (but now covers Pentium 4 as well) */
|
|
||||||
#define MICROCODE_IOCFREE _IO('6',0)
|
|
||||||
|
|
||||||
/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
|
/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
|
||||||
static inline void rep_nop(void)
|
static inline void rep_nop(void)
|
||||||
|
@ -358,9 +358,6 @@ struct extended_sigtable {
|
|||||||
struct extended_signature sigs[0];
|
struct extended_signature sigs[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* '6' because it used to be for P6 only (but now covers Pentium 4 as well) */
|
|
||||||
#define MICROCODE_IOCFREE _IO('6',0)
|
|
||||||
|
|
||||||
|
|
||||||
#define ASM_NOP1 K8_NOP1
|
#define ASM_NOP1 K8_NOP1
|
||||||
#define ASM_NOP2 K8_NOP2
|
#define ASM_NOP2 K8_NOP2
|
||||||
|
Loading…
Reference in New Issue
Block a user