Skip to contentSkip to conversation

minor x86 PM source file cleanup

PATCH In review Al Stone 3 participants 6 messages Aug 19, 2016 – Sep 14, 2016

Subsystems (2)
lore
Share & tools
lore
author
#1 lore raw

PATCH 1/2 x86: ACPI: remove extraneous white space after semicolon

In reply to Al Stone
---
 arch/x86/kernel/acpi/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/acpi/boot.c +1 -1
index 90d84c3..5fb8f05 100644
@@ -1513,7 +1513,7 @@ void __init acpi_boot_table_init(void)
 	 * If acpi_disabled, bail out
 	 */
 	if (acpi_disabled)
-		return; 
+		return;
 
 	/*
 	 * Initialize the ACPI boot-time table parser.
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/2 x86: ACPI: make variable names clearer in acpi_parse_madt_lapic_entries()

In reply to Al Stone

This patch has no functional change; it is purely cosmetic, though it does make it a wee bit easier to understand the code. Before, the count of LAPICs was being stored in the variable 'x2count' and the count of X2APICs was being stored in the variable 'count'. This patch swaps that so that the routine acpi_parse_madt_lapic_entries() will now consistently use x2count to refer to X2APIC info, and count to refer to LAPIC info.

---
 arch/x86/kernel/acpi/boot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/acpi/boot.c +2 -2
index 5fb8f05..ccd27fe 100644
@@ -1031,8 +1031,8 @@ static int __init acpi_parse_madt_lapic_entries(void)
 			return ret;
 		}
 
-		x2count = madt_proc[0].count;
-		count = madt_proc[1].count;
+		count = madt_proc[0].count;
+		x2count = madt_proc[1].count;
 	}
 	if (!count && !x2count) {
 		printk(KERN_ERR PREFIX "No LAPIC entries present\n");
Signature · 1 line
2.7.4

Al Stone

author
#0 lore raw

cover minor x86 PM source file cleanup

Really minor patches: one to cleanup whitespace, the second just makes the code a wee bit more maintainable by correcting some variable names without changing functionality.

Al Stone (2):
x86: ACPI: remove extraneous white space after semicolon
x86: ACPI: make variable names clearer in
acpi_parse_madt_lapic_entries()

 arch/x86/kernel/acpi/boot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
Acked-by on the v1 series
#3 lore raw
Quoted 3 lines · Al Stone

Really minor patches: one to cleanup whitespace, the second just makes the code a wee bit more maintainable by correcting some variable names without changing functionality.

(for both)

Quoted 8 lines

Al Stone (2):
x86: ACPI: remove extraneous white space after semicolon
x86: ACPI: make variable names clearer in
acpi_parse_madt_lapic_entries()

 arch/x86/kernel/acpi/boot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
author
#4 lore raw
Quoted 18 lines · Pavel Machek
Quoted 3 lines · Al Stone

Really minor patches: one to cleanup whitespace, the second just makes the code a wee bit more maintainable by correcting some variable names without changing functionality.

(for both)

Quoted 8 lines

Al Stone (2):
x86: ACPI: remove extraneous white space after semicolon
x86: ACPI: make variable names clearer in
acpi_parse_madt_lapic_entries()

 arch/x86/kernel/acpi/boot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Thanks, Pavel.

Signature · 8 lines
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
[email protected]
-----------------------------------
#5 lore raw
Quoted 15 lines · Al Stone
Quoted 14 lines · Pavel Machek
Quoted 3 lines · Al Stone

Really minor patches: one to cleanup whitespace, the second just makes the code a wee bit more maintainable by correcting some variable names without changing functionality.

(for both)

Quoted 5 lines

Al Stone (2):
x86: ACPI: remove extraneous white space after semicolon
x86: ACPI: make variable names clearer in
acpi_parse_madt_lapic_entries()

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
 arch/x86/kernel/acpi/boot.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Thanks, Pavel.

Both applied.

Thanks,
Rafael