mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cpu.h: remove 3 obsolete macros
@ 2017-10-24  6:23 yanjiang.jin
  2017-10-24  8:48 ` [tip:smp/hotplug] cpu/hotplug: Remove obsolete notifier macros tip-bot for Yanjiang Jin
  0 siblings, 1 reply; 2+ messages in thread
From: yanjiang.jin @ 2017-10-24  6:23 UTC (permalink / raw)
  To: tglx; +Cc: peterz, bigeasy, jinyanjiang, yanjiang.jin, linux-kernel

From: Yanjiang Jin <yanjiang.jin@windriver.com>

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.

Signed-off-by: Yanjiang Jin <yanjiang.jin@windriver.com>
---
 include/linux/cpu.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index ca73bc1..cd4771b 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -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
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-24  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24  6:23 [PATCH] cpu.h: remove 3 obsolete macros yanjiang.jin
2017-10-24  8:48 ` [tip:smp/hotplug] cpu/hotplug: Remove obsolete notifier macros tip-bot for Yanjiang Jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®