在线时间164 小时
UID3253536
注册时间2016-3-21
NXP金币0
该用户从未签到
超级版主
 
- 积分
- 1566
- 最后登录
- 2023-1-17
|
发表于 2017-3-14 17:25:58
|
显示全部楼层
你好,关于如何修改多核CPU成单核使用,有如下两种方法,一种是在u-boot中修改,另外一种是板子起来以后在系统中修改:
"maxcpus=n" in order to limit the kernel to using 'n' processors. .
Another way, in Linux :
1. Change directory to ‘/sys/devices/system/cpu’
a. Disabling core – execute ‘echo 0 > cpuX/online’ where ‘X’ is 1, 2, or 3 b. Enabling core – execute ‘echo 1 > cpuX/online’ where ‘X’ is 1, 2, or 3
|
|