Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112687
b: refs/heads/master
c: 1176fa9
h: refs/heads/master
i:
  112685: 70186dc
  112683: a2b3073
  112679: 464db81
  112671: 7f8936f
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 26, 2008
1 parent eeb4908 commit 768754b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4dbc34d181e87a0d724dee365921e9251f831d4
refs/heads/master: 1176fa919292887aa738d317d61fe2bba4d764f2
6 changes: 3 additions & 3 deletions trunk/arch/x86/mach-generic/bigsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <asm/mach-bigsmp/mach_apicdef.h>
#include <asm/bigsmp/apicdef.h>
#include <linux/smp.h>
#include <asm/mach-bigsmp/mach_apic.h>
#include <asm/mach-bigsmp/mach_ipi.h>
#include <asm/bigsmp/apic.h>
#include <asm/bigsmp/ipi.h>
#include <asm/mach-default/mach_mpparse.h>

static int dmi_bigsmp; /* can be set by dmi scanners */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ASM_X86__MACH_BIGSMP__MACH_APIC_H
#define ASM_X86__MACH_BIGSMP__MACH_APIC_H
#ifndef __ASM_MACH_APIC_H
#define __ASM_MACH_APIC_H

#define xapic_phys_to_log_apicid(cpu) (per_cpu(x86_bios_cpu_apicid, cpu))
#define esr_disable (1)
Expand All @@ -11,7 +11,7 @@ static inline int apic_id_registered(void)

/* Round robin the irqs amoung the online cpus */
static inline cpumask_t target_cpus(void)
{
{
static unsigned long cpu = NR_CPUS;
do {
if (cpu >= NR_CPUS)
Expand All @@ -23,7 +23,7 @@ static inline cpumask_t target_cpus(void)
}

#undef APIC_DEST_LOGICAL
#define APIC_DEST_LOGICAL 0
#define APIC_DEST_LOGICAL 0
#define TARGET_CPUS (target_cpus())
#define APIC_DFR_VALUE (APIC_DFR_FLAT)
#define INT_DELIVERY_MODE (dest_Fixed)
Expand Down Expand Up @@ -141,4 +141,4 @@ static inline u32 phys_pkg_id(u32 cpuid_apic, int index_msb)
return cpuid_apic >> index_msb;
}

#endif /* ASM_X86__MACH_BIGSMP__MACH_APIC_H */
#endif /* __ASM_MACH_APIC_H */
13 changes: 13 additions & 0 deletions trunk/include/asm-x86/bigsmp/apicdef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef __ASM_MACH_APICDEF_H
#define __ASM_MACH_APICDEF_H

#define APIC_ID_MASK (0xFF<<24)

static inline unsigned get_apic_id(unsigned long x)
{
return (((x)>>24)&0xFF);
}

#define GET_APIC_ID(x) get_apic_id(x)

#endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ASM_X86__MACH_BIGSMP__MACH_IPI_H
#define ASM_X86__MACH_BIGSMP__MACH_IPI_H
#ifndef __ASM_MACH_IPI_H
#define __ASM_MACH_IPI_H

void send_IPI_mask_sequence(cpumask_t mask, int vector);

Expand All @@ -22,4 +22,4 @@ static inline void send_IPI_all(int vector)
send_IPI_mask(cpu_online_map, vector);
}

#endif /* ASM_X86__MACH_BIGSMP__MACH_IPI_H */
#endif /* __ASM_MACH_IPI_H */
13 changes: 0 additions & 13 deletions trunk/include/asm-x86/mach-bigsmp/mach_apicdef.h

This file was deleted.

0 comments on commit 768754b

Please sign in to comment.