Re: [patch 24/28] drivers/base/cpu.c: fix maxcpus boot option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Jun 2013 14:05:06 -0700 akpm@xxxxxxxxxxxxxxxxxxxx wrote:

> From: Youquan Song <youquan.song@xxxxxxxxx>
> Subject: drivers/base/cpu.c: fix maxcpus boot option
> 
> The maxcpus boot option limits the maximum number of CPUs in the system,
> but this option is broken in recent kernels.  Though we use maxcpus to
> limit CPUs number, the current kernel will register all of the present
> CPUs in sysfs.  udev will enumerate all registered cpu in sysfs, and it
> will bring up the CPU if the CPU is offline.  So the maxcpus option is
> broken.
> 
> This patch will only register a CPU which is not over the limit of the
> maxcpus option in sysfs.  So it will keep the maxcpus limitation during
> udev enumeration or other bringup of CPUs over the limitation by methods
> such as echo 1 > /sys/devices/system/cpu/online

erk, no, this one is no good - please drop.
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]