mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
workqueue: use __cpuinit instead of __devinit for cpu callbacks
For workqueue hotplug callbacks, it makes less sense to use __devinit which discards the memory after boot if !HOTPLUG. __cpuinit, which discards the memory after boot if !HOTPLUG_CPU fits better. tj: Updated description. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
b2eb83d123
commit
9fdf9b73d6
1 changed files with 2 additions and 2 deletions
|
@ -3548,7 +3548,7 @@ static void gcwq_unbind_fn(struct work_struct *work)
|
||||||
* Workqueues should be brought up before normal priority CPU notifiers.
|
* Workqueues should be brought up before normal priority CPU notifiers.
|
||||||
* This will be registered high priority CPU notifier.
|
* This will be registered high priority CPU notifier.
|
||||||
*/
|
*/
|
||||||
static int __devinit workqueue_cpu_up_callback(struct notifier_block *nfb,
|
static int __cpuinit workqueue_cpu_up_callback(struct notifier_block *nfb,
|
||||||
unsigned long action,
|
unsigned long action,
|
||||||
void *hcpu)
|
void *hcpu)
|
||||||
{
|
{
|
||||||
|
@ -3589,7 +3589,7 @@ static int __devinit workqueue_cpu_up_callback(struct notifier_block *nfb,
|
||||||
* Workqueues should be brought down after normal priority CPU notifiers.
|
* Workqueues should be brought down after normal priority CPU notifiers.
|
||||||
* This will be registered as low priority CPU notifier.
|
* This will be registered as low priority CPU notifier.
|
||||||
*/
|
*/
|
||||||
static int __devinit workqueue_cpu_down_callback(struct notifier_block *nfb,
|
static int __cpuinit workqueue_cpu_down_callback(struct notifier_block *nfb,
|
||||||
unsigned long action,
|
unsigned long action,
|
||||||
void *hcpu)
|
void *hcpu)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue