Skip to content

Commit

Permalink
[PATCH] x86-64: remove duplicated cpu_mask_to_apicid in x86_64 smp.h
Browse files Browse the repository at this point in the history
inline function cpu_mask_to_apicid in smp.h is duplicated with macro
in mach_apic.h.

Signed-off-by: Yinghai Lu <yinghai.lu@amd.com>
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Yinghai Lu authored and Andi Kleen committed Dec 7, 2006
1 parent 36b2a8d commit d8cebe6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/asm-x86_64/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ extern u8 x86_cpu_to_apicid[NR_CPUS]; /* physical ID */
extern u8 x86_cpu_to_log_apicid[NR_CPUS];
extern u8 bios_cpu_apicid[];

static inline unsigned int cpu_mask_to_apicid(cpumask_t cpumask)
{
return cpus_addr(cpumask)[0];
}

static inline int cpu_present_to_apicid(int mps_cpu)
{
if (mps_cpu < NR_CPUS)
Expand Down

0 comments on commit d8cebe6

Please sign in to comment.