diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-09 14:57:18 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-09 16:15:06 +0300 |
| commit | 9c9d589ea310f1290e4d6d2019fc8b51d9a86e42 (patch) | |
| tree | 81694631f4e848728774c22256baf6cded4f910d /arch/riscv64/kernel/smp.c | |
| parent | b2f0f82e18665cb754b93d9795a6f1fb9dfc7c93 (diff) | |
| download | kmi-9c9d589ea310f1290e4d6d2019fc8b51d9a86e42.tar.gz kmi-9c9d589ea310f1290e4d6d2019fc8b51d9a86e42.zip | |
move rpc stack handling to arch-specific code
+ Fairly considerable speedup, as we don't have to look up the rpc pte
every time separately, instead cacheing them. Adds an architecture
specific limitation to total rpc stack size, though.
Diffstat (limited to 'arch/riscv64/kernel/smp.c')
| -rw-r--r-- | arch/riscv64/kernel/smp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/smp.c b/arch/riscv64/kernel/smp.c index cacb3b7..8d04491 100644 --- a/arch/riscv64/kernel/smp.c +++ b/arch/riscv64/kernel/smp.c @@ -114,6 +114,9 @@ void core_bringup(long hartid) { /* assume smp_bringup assigned our cpuid correctly */ id_t cpuid = hartid_to_cpuid(hartid); + + /* output is somewhat messed up due to no synchronisation but I guess + * that's fine for now */ info("core %ld online\n", (long)cpuid); /* realistically stuff after this point could probably be placed |
