From 6cad281fe986cdd3f89cba7c1959de10ca6f389d Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 15 Aug 2007 14:21:55 +0000 Subject: 2007-08-15 Frank Ch. Eigler * context.stp (cpuid, cpu): Use smp_processor_id(). --- tapset/context.stp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tapset/context.stp') 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) %{ -- cgit