Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339561
b: refs/heads/master
c: cb8cf4f
h: refs/heads/master
i:
  339559: f5b2469
v: v3
  • Loading branch information
Lorenzo Pieralisi committed Nov 19, 2012
1 parent 7bf30a0 commit cc7c06b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 71db5bfec1349afcbfbd71268c01c658c357b4f3
refs/heads/master: cb8cf4f821044f140ea5b9c8d4f816f0c05fab44
7 changes: 4 additions & 3 deletions trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,14 @@ int __cpu_logical_map[NR_CPUS];
void __init smp_setup_processor_id(void)
{
int i;
u32 cpu = is_smp() ? read_cpuid_mpidr() & 0xff : 0;
u32 mpidr = is_smp() ? read_cpuid_mpidr() & MPIDR_HWID_BITMASK : 0;
u32 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);

cpu_logical_map(0) = cpu;
for (i = 1; i < NR_CPUS; ++i)
for (i = 1; i < nr_cpu_ids; ++i)
cpu_logical_map(i) = i == cpu ? 0 : i;

printk(KERN_INFO "Booting Linux on physical CPU %d\n", cpu);
printk(KERN_INFO "Booting Linux on physical CPU 0x%x\n", mpidr);
}

static void __init setup_processor(void)
Expand Down

0 comments on commit cc7c06b

Please sign in to comment.