Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1466724
| From | Al Stone <ahs3@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] x86: ACPI: make variable names clearer in acpi_parse_madt_lapic_entries() |
| Date | 2016-08-20 01:30 +0200 |
| Message-ID | <s81oC-3EB-21@gated-at.bofh.it> (permalink) |
| References | <s81oB-3EB-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
Signed-off-by: Al Stone <ahs3@redhat.com>
---
arch/x86/kernel/acpi/boot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 5fb8f05..ccd27fe 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -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");
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] minor x86 PM source file cleanup Al Stone <ahs3@redhat.com> - 2016-08-20 01:30 +0200
[PATCH 2/2] x86: ACPI: make variable names clearer in acpi_parse_madt_lapic_entries() Al Stone <ahs3@redhat.com> - 2016-08-20 01:30 +0200
Re: [PATCH 0/2] minor x86 PM source file cleanup Pavel Machek <pavel@ucw.cz> - 2016-08-20 13:00 +0200
Re: [PATCH 0/2] minor x86 PM source file cleanup Al Stone <ahs3@redhat.com> - 2016-08-21 02:20 +0200
csiph-web