ARM에서 핫 플러그 ​​CPU를 비활성화하는 방법은 무엇입니까?

ARM에서 핫 플러그 ​​CPU를 비활성화하는 방법은 무엇입니까?

Linux 5.4.47을 실행하는 ARM64 Cortex-A72 보드가 있습니다. CPU 핫플러그가 제대로 작동하는지 확인하고 싶습니다(사용하려는 프로젝트에 필요함).

커널이 활성화되었지만 CPU가 CONFIG_HOTPLUG_CPU없습니다 . -/sys/devices/system/cpu/cpuX/onlineCPU를 끄는 방법을 모르겠습니다..

/sys/devices/system/cpu]# ls -l
total 0
-r--r--r--    1 root     root        4.0K Jan  1 00:00 consumers
drwxr-xr-x    7 root     root           0 Jan  1 00:00 cpu0
drwxr-xr-x    7 root     root           0 Jan  1 00:00 cpu1
drwxr-xr-x    7 root     root           0 Jan  1 00:00 cpu2
drwxr-xr-x    7 root     root           0 Jan  1 00:00 cpu3
drwxr-xr-x    2 root     root           0 Jan  1 00:00 cpuidle
drwxr-xr-x    2 root     root           0 Jan  1 00:00 hotplug
-r--r--r--    1 root     root        4.0K Jan  1 00:00 isolated
-r--r--r--    1 root     root        4.0K Jan  1 00:00 kernel_max
-r--r--r--    1 root     root        4.0K Jan  1 00:00 modalias
-r--r--r--    1 root     root        4.0K Jan  1 00:00 nohz_full
-r--r--r--    1 root     root        4.0K Jan  1 00:13 offline
-r--r--r--    1 root     root        4.0K Jan  1 00:00 online
-r--r--r--    1 root     root        4.0K Jan  1 00:00 possible
drwxr-xr-x    2 root     root           0 Jan  1 00:00 power
-r--r--r--    1 root     root        4.0K Jan  1 00:00 present
drwxr-xr-x    2 root     root           0 Jan  1 00:00 smt
-r--r--r--    1 root     root        4.0K Jan  1 00:00 suppliers
-rw-r--r--    1 root     root        4.0K Jan  1 00:00 uevent
drwxr-xr-x    2 root     root           0 Jan  1 00:00 vulnerabilities
/sys/devices/system/cpu/cpu2]# ls -l
total 0
drwxr-xr-x    5 root     root           0 Jan  1 00:07 cache
-r--r--r--    1 root     root        4.0K Jan  1 00:06 consumers
-r--r--r--    1 root     root        4.0K Jan  1 00:06 cpu_capacity
-r--------    1 root     root        4.0K Jan  1 00:06 crash_notes
-r--------    1 root     root        4.0K Jan  1 00:06 crash_notes_size
drwxr-xr-x    2 root     root           0 Jan  1 00:06 hotplug
lrwxrwxrwx    1 root     root           0 Jan  1 00:06 node0 -> ../../node/node0
lrwxrwxrwx    1 root     root           0 Jan  1 00:06 of_node -> ../../../../firmware/devicetree/base/cpus/cpu@2
drwxr-xr-x    2 root     root           0 Jan  1 00:06 power
drwxr-xr-x    3 root     root           0 Jan  1 00:12 regs
lrwxrwxrwx    1 root     root           0 Jan  1 00:06 subsystem -> ../../../../bus/cpu
-r--r--r--    1 root     root        4.0K Jan  1 00:06 suppliers
drwxr-xr-x    2 root     root           0 Jan  1 00:03 topology
-rw-r--r--    1 root     root        4.0K Jan  1 00:06 uevent

, 및 hotplug파일을 포함합니다 .​​targetstatefailpowerruntime_active_timepm_qos_resume_latency_usruntime_statusautosuspend_delay_msruntime_suspended_timecontrol

관련 정보