[PATCH 2/3] powerpc/sysfs: Show idle_purr and idle_spurr for every CPU
    Nathan Lynch 
    nathanl at linux.ibm.com
       
    Thu Dec  5 09:24:31 AEDT 2019
    
    
  
"Gautham R. Shenoy" <ego at linux.vnet.ibm.com> writes:
> @@ -1067,6 +1097,8 @@ static int __init topology_init(void)
>  			register_cpu(c, cpu);
>  
>  			device_create_file(&c->dev, &dev_attr_physical_id);
> +			if (firmware_has_feature(FW_FEATURE_SPLPAR))
> +				create_idle_purr_spurr_sysfs_entry(&c->dev);
Architecturally speaking PURR/SPURR aren't strongly linked to the PAPR
SPLPAR option, are they? I'm not sure it's right for these attributes to
be absent if the platform does not support shared processor mode.
    
    
More information about the Linuxppc-dev
mailing list