Hello Rizwan Qureshi, Duncan Laurie,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/26740
to look at the new patch set (#2).
Change subject: cpu/x86/mp: Update CPU name in device structure
......................................................................
cpu/x86/mp: Update CPU name in device structure
Name the CPU device structure as per processor brand string.
Before logs use to look like:
APIC: 01 (unknown)
Now logs looks like(depending on CPU on which it is tested):
APIC: 01 (Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz)
BUG=None
BRANCH=None
TEST= Build & boot Soraka.
Change-Id: I6af0e29bbbdb59406baeae32f7874ff9036a9c81
Signed-off-by: Naresh G Solanki <naresh.solanki(a)intel.com>
---
M src/cpu/x86/mp_init.c
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/26740/2
--
To view, visit https://review.coreboot.org/26740
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6af0e29bbbdb59406baeae32f7874ff9036a9c81
Gerrit-Change-Number: 26740
Gerrit-PatchSet: 2
Gerrit-Owner: Naresh Solanki <naresh.solanki(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Naresh Solanki has uploaded this change for review. ( https://review.coreboot.org/26740
Change subject: cpu/x86/mp: Update CPU name in device structure
......................................................................
cpu/x86/mp: Update CPU name in device structure
Name the CPU device structure as per processor brand string.
Before logs use to look like:
APIC: 01 (unknown)
Now logs looks:
APIC: 01 (Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz)
BUG=None
BRANCH=None
TEST= Build & boot Soraka.
Change-Id: I6af0e29bbbdb59406baeae32f7874ff9036a9c81
Signed-off-by: Naresh G Solanki <naresh.solanki(a)intel.com>
---
M src/cpu/x86/mp_init.c
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/26740/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index a696cd0..4abf653 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -46,6 +46,8 @@
int logical_cpu_number;
};
+char processor_name[49];
+
/*
* A mp_flight_record details a sequence of calls for the APs to perform
* along with the BSP to coordinate sequencing. Each flight record either
@@ -403,6 +405,7 @@
printk(BIOS_CRIT, "Could not allocate CPU device\n");
max_cpus--;
}
+ new->name = processor_name;
cpus[i].dev = new;
}
@@ -560,7 +563,6 @@
{
struct device_path cpu_path;
struct cpu_info *info;
- char processor_name[49];
/* Print processor name */
fill_processor_name(processor_name);
@@ -576,6 +578,7 @@
/* Find the device structure for the boot CPU. */
info = cpu_info();
info->cpu = alloc_find_dev(cpu_bus, &cpu_path);
+ info->cpu->name = processor_name;
if (info->index != 0)
printk(BIOS_CRIT, "BSP index(%d) != 0!\n", info->index);
--
To view, visit https://review.coreboot.org/26740
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6af0e29bbbdb59406baeae32f7874ff9036a9c81
Gerrit-Change-Number: 26740
Gerrit-PatchSet: 1
Gerrit-Owner: Naresh Solanki <naresh.solanki(a)intel.com>