ACPI: rename cstate_entry_s to cstate_entry

style change only.

Signed-off-by: Len Brown <len.brown@intel.com>

authored by Venkatesh Pallipadi and committed by Len Brown 5d65131f 723fe2ca

+5 -5
+5 -5
arch/i386/kernel/acpi/cstate.c
··· 47 48 /* The code below handles cstate entry with monitor-mwait pair on Intel*/ 49 50 - struct cstate_entry_s { 51 struct { 52 unsigned int eax; 53 unsigned int ecx; 54 } states[ACPI_PROCESSOR_MAX_POWER]; 55 }; 56 - static struct cstate_entry_s *cpu_cstate_entry; /* per CPU ptr */ 57 58 static short mwait_supported[ACPI_PROCESSOR_MAX_POWER]; 59 ··· 71 int acpi_processor_ffh_cstate_probe(unsigned int cpu, 72 struct acpi_processor_cx *cx, struct acpi_power_register *reg) 73 { 74 - struct cstate_entry_s *percpu_entry; 75 struct cpuinfo_x86 *c = cpu_data + cpu; 76 77 cpumask_t saved_mask; ··· 136 void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx) 137 { 138 unsigned int cpu = smp_processor_id(); 139 - struct cstate_entry_s *percpu_entry; 140 141 percpu_entry = per_cpu_ptr(cpu_cstate_entry, cpu); 142 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, ··· 150 if (c->x86_vendor != X86_VENDOR_INTEL) 151 return -1; 152 153 - cpu_cstate_entry = alloc_percpu(struct cstate_entry_s); 154 return 0; 155 } 156
··· 47 48 /* The code below handles cstate entry with monitor-mwait pair on Intel*/ 49 50 + struct cstate_entry { 51 struct { 52 unsigned int eax; 53 unsigned int ecx; 54 } states[ACPI_PROCESSOR_MAX_POWER]; 55 }; 56 + static struct cstate_entry *cpu_cstate_entry; /* per CPU ptr */ 57 58 static short mwait_supported[ACPI_PROCESSOR_MAX_POWER]; 59 ··· 71 int acpi_processor_ffh_cstate_probe(unsigned int cpu, 72 struct acpi_processor_cx *cx, struct acpi_power_register *reg) 73 { 74 + struct cstate_entry *percpu_entry; 75 struct cpuinfo_x86 *c = cpu_data + cpu; 76 77 cpumask_t saved_mask; ··· 136 void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cx) 137 { 138 unsigned int cpu = smp_processor_id(); 139 + struct cstate_entry *percpu_entry; 140 141 percpu_entry = per_cpu_ptr(cpu_cstate_entry, cpu); 142 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, ··· 150 if (c->x86_vendor != X86_VENDOR_INTEL) 151 return -1; 152 153 + cpu_cstate_entry = alloc_percpu(struct cstate_entry); 154 return 0; 155 } 156