diff options
Diffstat (limited to 'src/hardware/LMI_ProcessorProvider.c')
-rw-r--r-- | src/hardware/LMI_ProcessorProvider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hardware/LMI_ProcessorProvider.c b/src/hardware/LMI_ProcessorProvider.c index 59ebdc3..a7d2c2c 100644 --- a/src/hardware/LMI_ProcessorProvider.c +++ b/src/hardware/LMI_ProcessorProvider.c @@ -191,7 +191,6 @@ static CMPIStatus LMI_ProcessorEnumInstances( current_speed = lscpu.current_speed; } enabled_cores = lscpu.cores; - stepping = lscpu.stepping; LMI_Processor_Set_DeviceID(&lmi_cpu, cpu_id); } @@ -200,6 +199,9 @@ static CMPIStatus LMI_ProcessorEnumInstances( || !strcmp(cpu_name, "Not Specified")) { cpu_name = proc_cpu.model_name; } + if (!stepping || !strlen(stepping)) { + stepping = lscpu.stepping; + } LMI_Processor_Set_InstanceID(&lmi_cpu, instance_id); LMI_Processor_Set_CPUStatus(&lmi_cpu, cpustatus); |