mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
x86: rename mpc_config_oemtable to mpc_oemtable
Impact: cleanup, solve 80 columns wrap problems mpc_config_oemtable should be renamed to mpc_oemtable. The reason: the 'c' in MPC already means 'config' - no need to repeat that in the type name. Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
8fb2952b8a
commit
b0e239ffad
5 changed files with 7 additions and 7 deletions
|
@ -151,7 +151,7 @@ struct mpc_lintsrc {
|
||||||
|
|
||||||
#define MPC_OEM_SIGNATURE "_OEM"
|
#define MPC_OEM_SIGNATURE "_OEM"
|
||||||
|
|
||||||
struct mp_config_oemtable {
|
struct mpc_oemtable {
|
||||||
char oem_signature[4];
|
char oem_signature[4];
|
||||||
unsigned short oem_length; /* Size of table */
|
unsigned short oem_length; /* Size of table */
|
||||||
char oem_rev; /* 0x01 */
|
char oem_rev; /* 0x01 */
|
||||||
|
|
|
@ -27,7 +27,7 @@ extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip);
|
||||||
*/
|
*/
|
||||||
struct mpc_cpu;
|
struct mpc_cpu;
|
||||||
struct mpc_bus;
|
struct mpc_bus;
|
||||||
struct mp_config_oemtable;
|
struct mpc_oemtable;
|
||||||
struct x86_quirks {
|
struct x86_quirks {
|
||||||
int (*arch_pre_time_init)(void);
|
int (*arch_pre_time_init)(void);
|
||||||
int (*arch_time_init)(void);
|
int (*arch_time_init)(void);
|
||||||
|
@ -42,7 +42,7 @@ struct x86_quirks {
|
||||||
int (*mpc_apic_id)(struct mpc_cpu *m);
|
int (*mpc_apic_id)(struct mpc_cpu *m);
|
||||||
void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name);
|
void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name);
|
||||||
void (*mpc_oem_pci_bus)(struct mpc_bus *m);
|
void (*mpc_oem_pci_bus)(struct mpc_bus *m);
|
||||||
void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
|
void (*smp_read_mpc_oem)(struct mpc_oemtable *oemtable,
|
||||||
unsigned short oemsize);
|
unsigned short oemsize);
|
||||||
int (*setup_ioapic_ids)(void);
|
int (*setup_ioapic_ids)(void);
|
||||||
int (*update_genapic)(void);
|
int (*update_genapic)(void);
|
||||||
|
|
|
@ -313,7 +313,7 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (mpc->mpc_oemptr && x86_quirks->smp_read_mpc_oem) {
|
if (mpc->mpc_oemptr && x86_quirks->smp_read_mpc_oem) {
|
||||||
struct mp_config_oemtable *oem_table = (struct mp_config_oemtable *)(unsigned long)mpc->mpc_oemptr;
|
struct mpc_oemtable *oem_table = (void *)(long)mpc->mpc_oemptr;
|
||||||
x86_quirks->smp_read_mpc_oem(oem_table, mpc->mpc_oemsize);
|
x86_quirks->smp_read_mpc_oem(oem_table, mpc->mpc_oemsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ static int __init mpf_checksum(unsigned char *mp, int len)
|
||||||
* Read/parse the MPC oem tables
|
* Read/parse the MPC oem tables
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void __init smp_read_mpc_oem(struct mp_config_oemtable *oemtable,
|
static void __init smp_read_mpc_oem(struct mpc_oemtable *oemtable,
|
||||||
unsigned short oemsize)
|
unsigned short oemsize)
|
||||||
{
|
{
|
||||||
int count = sizeof(*oemtable); /* the header size */
|
int count = sizeof(*oemtable); /* the header size */
|
||||||
|
|
|
@ -47,8 +47,8 @@ static __init int
|
||||||
mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
|
mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
|
||||||
{
|
{
|
||||||
if (mpc->mpc_oemptr) {
|
if (mpc->mpc_oemptr) {
|
||||||
struct mp_config_oemtable *oem_table =
|
struct mpc_oemtable *oem_table =
|
||||||
(struct mp_config_oemtable *)mpc->mpc_oemptr;
|
(struct mpc_oemtable *)mpc->mpc_oemptr;
|
||||||
if (!strncmp(oem, "UNISYS", 6))
|
if (!strncmp(oem, "UNISYS", 6))
|
||||||
return parse_unisys_oem((char *)oem_table);
|
return parse_unisys_oem((char *)oem_table);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue