cpu: Set DBus EffectiveFamily property
According to the phosphor-dbus-interfaces yaml file, EffectiveFamily is
the raw value of the Processor Family in SMBIOS Processor Information
structure defined in DSP0134 section 7.5.2. This patch sets that value
on DBus.
Tested:
Verified the value of EffectiveFamily matches the value in SMBIOS table
Change-Id: I9b2274e9fc263d6550fd48e33c7ad233c910b1c1
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/src/cpu.cpp b/src/cpu.cpp
index daab15b..4ae98b9 100644
--- a/src/cpu.cpp
+++ b/src/cpu.cpp
@@ -54,11 +54,13 @@
else
{
processor::family(it2->second);
+ processor::effectiveFamily(family2);
}
}
else
{
processor::family(it->second);
+ processor::effectiveFamily(family);
}
}