aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/cpu.c b/core/cpu.c
index 9d75329..c6a1bf9 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -714,6 +714,13 @@ struct cpu_thread *find_cpu_by_pir(u32 pir)
return &cpu_stacks[pir].cpu;
}
+struct __nomcount cpu_thread *find_cpu_by_pir_nomcount(u32 pir)
+{
+ if (pir > cpu_max_pir)
+ return NULL;
+ return &cpu_stacks[pir].cpu;
+}
+
struct cpu_thread *find_cpu_by_server(u32 server_no)
{
struct cpu_thread *t;