Skip to content

Commit

Permalink
x86/apic: Remove mpparse 'apicid' variable
Browse files Browse the repository at this point in the history
From: Dave Hansen <dave.hansen@linux.intel.com>

Some truly ancient code had different ways of calculating the 'apicid'
but it is long gone.  Zap the unnecssary local variablee

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
  • Loading branch information
Dave Hansen committed Aug 9, 2023
1 parent 249ada2 commit 004671e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/x86/kernel/mpparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,18 @@ static int __init mpf_checksum(unsigned char *mp, int len)

static void __init MP_processor_info(struct mpc_cpu *m)
{
int apicid;
char *bootup_cpu = "";

if (!(m->cpuflag & CPU_ENABLED)) {
disabled_cpus++;
return;
}

apicid = m->apicid;

if (m->cpuflag & CPU_BOOTPROCESSOR)
bootup_cpu = " (Bootup-CPU)";

pr_info("Processor #%d%s\n", m->apicid, bootup_cpu);
generic_processor_info(apicid);
generic_processor_info(m->apicid);
}

#ifdef CONFIG_X86_IO_APIC
Expand Down

0 comments on commit 004671e

Please sign in to comment.