cpu.h: remove 3 obsolete macros
PATCH 1/1 cpu.h: remove 3 obsolete macros
From: Yanjiang Jin <[email protected]>
commit 530e9b76ae8f ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions")'
removes the below macros:
- #define CPU_UP_CANCELED 0x0004 /* CPU (unsigned)v NOT coming up */
- #define CPU_DOWN_PREPARE 0x0005 /* CPU (unsigned)v going down */
- #define CPU_DOWN_FAILED 0x0006 /* CPU (unsigned)v NOT going down */
But "CPU_UP_CANCELED_FROZEN, CPU_DOWN_PREPARE_FROZEN and CPU_DOWN_FAILED_FROZEN" still refer to them, and nobody uses these "FROZEN" macros now, we should remove them too.
--- include/linux/cpu.h | 3 --- 1 file changed, 3 deletions(-)
include/linux/cpu.h +0 -3
@@ -72,9 +72,6 @@ struct device *cpu_device_create(struct device *parent, void *drvdata,#define CPU_ONLINE_FROZEN (CPU_ONLINE | CPU_TASKS_FROZEN)#define CPU_UP_PREPARE_FROZEN (CPU_UP_PREPARE | CPU_TASKS_FROZEN) -#define CPU_UP_CANCELED_FROZEN (CPU_UP_CANCELED | CPU_TASKS_FROZEN) -#define CPU_DOWN_PREPARE_FROZEN (CPU_DOWN_PREPARE | CPU_TASKS_FROZEN) -#define CPU_DOWN_FAILED_FROZEN (CPU_DOWN_FAILED | CPU_TASKS_FROZEN)#define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN)#ifdef CONFIG_SMP
Signature · 1 line
1.9.1
tip-bot for Yanjiang Jin
merge bot[tip:smp/hotplug] cpu/hotplug: Remove obsolete notifier macros
cpu/hotplug: Remove obsolete notifier macros
Commit-ID: c6cd924efe941ef62eb805c59e4a09e219ac5c6d Gitweb: https://git.kernel.org/tip/c6cd924efe941ef62eb805c59e4a09e219ac5c6d Author: Yanjiang Jin <[email protected]> AuthorDate: Tue, 24 Oct 2017 14:23:41 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 24 Oct 2017 10:43:52 +0200
cpu/hotplug: Remove obsolete notifier macros
commit 530e9b76ae8f ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions")' removed the below macros:
- #define CPU_UP_CANCELED 0x0004 /* CPU (unsigned)v NOT coming up */
- #define CPU_DOWN_PREPARE 0x0005 /* CPU (unsigned)v going down */
- #define CPU_DOWN_FAILED 0x0006 /* CPU (unsigned)v NOT going down */
But "CPU_UP_CANCELED_FROZEN, CPU_DOWN_PREPARE_FROZEN and CPU_DOWN_FAILED_FROZEN" still refer to them, and nobody uses these "FROZEN" macros now, so remove them too.
--- include/linux/cpu.h | 3 --- 1 file changed, 3 deletions(-)
include/linux/cpu.h +0 -3
@@ -72,9 +72,6 @@ struct notifier_block;#define CPU_ONLINE_FROZEN (CPU_ONLINE | CPU_TASKS_FROZEN)#define CPU_UP_PREPARE_FROZEN (CPU_UP_PREPARE | CPU_TASKS_FROZEN) -#define CPU_UP_CANCELED_FROZEN (CPU_UP_CANCELED | CPU_TASKS_FROZEN) -#define CPU_DOWN_PREPARE_FROZEN (CPU_DOWN_PREPARE | CPU_TASKS_FROZEN) -#define CPU_DOWN_FAILED_FROZEN (CPU_DOWN_FAILED | CPU_TASKS_FROZEN)#define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN)#ifdef CONFIG_SMP