summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 39f1b640..622fa505 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -65,11 +65,11 @@ function euid:long () %{ /* pure */
%}
function cpuid:long () %{ /* pure */
- THIS->__retvalue = current->thread_info->cpu;
+ THIS->__retvalue = smp_processor_id();
%}
function cpu:long () %{ /* pure */
- THIS->__retvalue = current->thread_info->cpu; /* smp_processor_id()? */
+ THIS->__retvalue = smp_processor_id();
%}
function print_stack(stk:string) %{