Skip to contentSkip to conversation

sched.c: remove an unused macro (fwd)

PATCH New Adrian Bunk 1 participant 1 message Dec 8, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched.c: remove an unused macro (fwd)

The patch forwarded below still applies and compiles against 2.6.10-rc2-mm4.

Please apply.

----- Forwarded message from Adrian Bunk <[email protected]> -----

Date: Fri, 29 Oct 2004 13:31:47 +0200
From: Adrian Bunk <[email protected]>
To: Peter Williams <[email protected]>
Cc: Nick Piggin <[email protected]>, Ingo Molnar <[email protected]>,
[email protected]
Subject: [2.6 patch] sched.c: remove an unused macro

Quoted 3 lines · Peter Williams

You missed some :-). The cpu_to_node_mask() macros don't seem to be used either.

I only searched for unused static inline functions (since this was relatively easy).

But your comment seems to be correct, and below is the patch that removes the cpu_to_node_mask macros.

kernel/sched.c renamed from kernel/sched.c.old +0 -6
@@ -51,12 +51,6 @@
 
 #include <asm/unistd.h>
 
-#ifdef CONFIG_NUMA
-#define cpu_to_node_mask(cpu) node_to_cpumask(cpu_to_node(cpu))
-#else
-#define cpu_to_node_mask(cpu) (cpu_online_map)
-#endif
-
 /*
  * Convert user-nice values [ -20 ... 0 ... 19 ]
  * to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

----- End forwarded message -----