• Dave Jones's avatar
    [CPUFREQ][3/4] cpufreq "cpu group" awareness: do symlinks for other CPUs... · 7eb28b19
    Dave Jones authored
    [CPUFREQ][3/4] cpufreq "cpu group" awareness: do symlinks for other CPUs instead of registering kobjects
    
    Only register each "affected_cpu_mask" once, and do symlinks for those
    CPUs not directly registered to the driver model.
    
    Zwane Mwaikambo tested it, and here is the result:
    
    root@morocco cpu {0:0} pwd
    /sys/devices/system/cpu
    root@morocco cpu {0:0} tree
    .
    |-- cpu0
    |   |-- cpufreq
    |   |   |-- cpuinfo_cur_freq
    |   |   |-- ...
    |   |   -- scaling_setspeed
    |   -- online
    -- cpu1
        |-- cpufreq -> ../../../../devices/system/cpu/cpu0/cpufreq
        -- online
    Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
    Signed-off-by: default avatarDave Jones <davej@redhat.com>
    7eb28b19
cpufreq.c 31.7 KB