Skip to contentSkip to conversation

x86: remove duplicated macros.

PATCH In review Yinghai Lu 1 participant 2 messages Apr 27, 2009 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: remove duplicated macros.

XAPIC_DEST_* is dupliicated to the one in apicdef.h

[ Impact: cleanup ]

---
 arch/x86/kernel/apic/summit_32.c |    7 -------
 1 file changed, 7 deletions(-)
arch/x86/kernel/apic/summit_32.c +0 -7
Index: linux-2.6/arch/x86/kernel/apic/summit_32.c
===================================================================
@@ -173,13 +173,6 @@ static inline int is_WPEG(struct rio_det
 		rio->type == LookOutAWPEG || rio->type == LookOutBWPEG);
 }
 
-
-/* In clustered mode, the high nibble of APIC ID is a cluster number.
- * The low nibble is a 4-bit bitmap. */
-#define XAPIC_DEST_CPUS_SHIFT	4
-#define XAPIC_DEST_CPUS_MASK	((1u << XAPIC_DEST_CPUS_SHIFT) - 1)
-#define XAPIC_DEST_CLUSTER_MASK	(XAPIC_DEST_CPUS_MASK << XAPIC_DEST_CPUS_SHIFT)
-
 #define SUMMIT_APIC_DFR_VALUE	(APIC_DFR_CLUSTER)
 
 static const struct cpumask *summit_target_cpus(void)
#1 lore raw

[tip:x86/apic] x86: apic: Remove duplicated macros

Commit-ID:  b2ba83ff4f4405cebc10884121ee71338a1a6c94
Gitweb:     http://git.kernel.org/tip/b2ba83ff4f4405cebc10884121ee71338a1a6c94
Author:     Yinghai Lu <[email protected]>
AuthorDate: Sun, 26 Apr 2009 23:38:08 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 27 Apr 2009 09:13:36 +0200

x86: apic: Remove duplicated macros

XAPIC_DEST_* is dupliicated to the one in apicdef.h

[ Impact: cleanup ]

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/apic/summit_32.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
arch/x86/kernel/apic/summit_32.c +0 -7
index 9cfe1f4..344eee4 100644
@@ -173,13 +173,6 @@ static inline int is_WPEG(struct rio_detail *rio){
 		rio->type == LookOutAWPEG || rio->type == LookOutBWPEG);
 }
 
-
-/* In clustered mode, the high nibble of APIC ID is a cluster number.
- * The low nibble is a 4-bit bitmap. */
-#define XAPIC_DEST_CPUS_SHIFT	4
-#define XAPIC_DEST_CPUS_MASK	((1u << XAPIC_DEST_CPUS_SHIFT) - 1)
-#define XAPIC_DEST_CLUSTER_MASK	(XAPIC_DEST_CPUS_MASK << XAPIC_DEST_CPUS_SHIFT)
-
 #define SUMMIT_APIC_DFR_VALUE	(APIC_DFR_CLUSTER)
 
 static const struct cpumask *summit_target_cpus(void)