projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LoongArch: Parse MADT to get multi-processor information
[platform/kernel/linux-starfive.git]
/
arch
/
loongarch
/
kernel
/
smp.c
diff --git
a/arch/loongarch/kernel/smp.c
b/arch/loongarch/kernel/smp.c
index
0974310
..
b5fab30
100644
(file)
--- a/
arch/loongarch/kernel/smp.c
+++ b/
arch/loongarch/kernel/smp.c
@@
-242,10
+242,7
@@
void loongson3_smp_finish(void)
static bool io_master(int cpu)
{
- if (cpu == 0)
- return true;
-
- return false;
+ return test_bit(cpu, &loongson_sysconf.cores_io_master);
}
int loongson3_cpu_disable(void)