10-05-2018, 03:20 AM
on 4.4 when turning off CONFIG_ARM_ROCKCHIP_CPUFREQ and
setting CONFIG_ARM_BIG_LITTLE_CPUFREQ
I get the same cpu-core preference for cpu4 and cpu5 (A72)
Is this set on your 4.19?
setting CONFIG_ARM_BIG_LITTLE_CPUFREQ
I get the same cpu-core preference for cpu4 and cpu5 (A72)
Is this set on your 4.19?
Code:
#
# CPU frequency scaling drivers
#
CONFIG_CPUFREQ_DT=y
CONFIG_ARM_BIG_LITTLE_CPUFREQ=y
CONFIG_ARM_DT_BL_CPUFREQ=y
# CONFIG_ARM_KIRKWOOD_CPUFREQ is not set
# CONFIG_ARM_ROCKCHIP_CPUFREQ is not set
Code:
$ ./testcpu
stress: info: [1561] dispatching hogs: 1 cpu, 0 io, 0 vm, 0 hdd
PID LWP %CPU CPUID TIME
1475 1475 0.0 4 00:00:00
1560 1560 0.0 4 00:00:00
1561 1561 0.0 1 00:00:00
1563 1563 100 5 00:00:05
1564 1564 0.0 4 00:00:00
stress: info: [1561] successful run completed in 10s
stress: info: [1566] dispatching hogs: 2 cpu, 0 io, 0 vm, 0 hdd
PID LWP %CPU CPUID TIME
1475 1475 0.0 4 00:00:00
1560 1560 0.0 0 00:00:00
1566 1566 0.0 4 00:00:00
1568 1568 99.6 5 00:00:04
1569 1569 99.8 4 00:00:04
1570 1570 0.0 1 00:00:00
stress: info: [1566] successful run completed in 10s
stress: info: [1572] dispatching hogs: 3 cpu, 0 io, 0 vm, 0 hdd
PID LWP %CPU CPUID TIME
1475 1475 0.0 4 00:00:00
1560 1560 0.0 0 00:00:00
1572 1572 0.0 1 00:00:00
1574 1574 100 4 00:00:05
1575 1575 100 3 00:00:05
1576 1576 100 5 00:00:05
1577 1577 0.0 1 00:00:00
stress: info: [1572] successful run completed in 10s
stress: info: [1580] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd
PID LWP %CPU CPUID TIME
1475 1475 0.0 4 00:00:00
1560 1560 0.0 3 00:00:00
1580 1580 0.0 4 00:00:00
1582 1582 100 5 00:00:05
1583 1583 99.8 1 00:00:04
1584 1584 100 4 00:00:05
1585 1585 100 2 00:00:05
1586 1586 0.0 0 00:00:00
stress: info: [1580] successful run completed in 10s