summaryrefslogtreecommitdiff
path: root/src/arch/x86/mpspec.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-08-21 17:37:15 +0200
committerMartin Roth <martinroth@google.com>2016-08-28 18:48:30 +0200
commitdbf30678ee658fedca68a75277cd5c005d9833ef (patch)
treeec920ccfdf7583cbf4721a781ad361bacd7a44d7 /src/arch/x86/mpspec.c
parentcbe7464c623d148c96974f0ce8724ead0ad5478d (diff)
src/arch: Add required space before opening parenthesis '('
Change-Id: I8a44a58506d7cf5ebc9fe7ac4f2b46f9544ba61a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16287 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/arch/x86/mpspec.c')
-rw-r--r--src/arch/x86/mpspec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c
index d91adf8821..5f251e31c9 100644
--- a/src/arch/x86/mpspec.c
+++ b/src/arch/x86/mpspec.c
@@ -63,7 +63,7 @@ static unsigned char smp_compute_checksum(void *v, int len)
int i;
bytes = v;
checksum = 0;
- for(i = 0; i < len; i++) {
+ for (i = 0; i < len; i++) {
checksum -= bytes[i];
}
return checksum;
@@ -170,8 +170,8 @@ void smp_write_processors(struct mp_config_table *mc)
cpu_features = result.eax;
cpu_feature_flags = result.edx;
/* order the output of the cpus to fix a bug in kernel 2.6.11 */
- for(order_id = 0;order_id <256; order_id++) {
- for(cpu = all_devices; cpu; cpu = cpu->next) {
+ for (order_id = 0;order_id <256; order_id++) {
+ for (cpu = all_devices; cpu; cpu = cpu->next) {
unsigned long cpu_flag;
if ((cpu->path.type != DEVICE_PATH_APIC) ||
(cpu->bus->dev->path.type != DEVICE_PATH_CPU_CLUSTER))
@@ -185,7 +185,7 @@ void smp_write_processors(struct mp_config_table *mc)
if (boot_apic_id == cpu->path.apic.apic_id)
cpu_flag = MPC_CPU_ENABLED | MPC_CPU_BOOTPROCESSOR;
- if(cpu->path.apic.apic_id == order_id) {
+ if (cpu->path.apic.apic_id == order_id) {
smp_write_processor(mc,
cpu->path.apic.apic_id, apic_version,
cpu_flag, cpu_features, cpu_feature_flags
@@ -504,7 +504,7 @@ unsigned long __attribute__((weak)) write_smp_table(unsigned long addr)
mptable_write_buses(mc, NULL, &isa_bus);
- for(dev = all_devices; dev; dev = dev->next) {
+ for (dev = all_devices; dev; dev = dev->next) {
if (dev->path.type != DEVICE_PATH_IOAPIC)
continue;
@@ -530,7 +530,7 @@ unsigned long __attribute__((weak)) write_smp_table(unsigned long addr)
mptable_add_isa_interrupts(mc, isa_bus, isaioapic, 0);
}
- for(dev = all_devices; dev; dev = dev->next) {
+ for (dev = all_devices; dev; dev = dev->next) {
if (dev->path.type != DEVICE_PATH_PCI || !dev->enabled)
continue;