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/ChangeLog | 6 +++++- tapset/context.stp | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 5d13eec6..1730d04b 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,7 +1,11 @@ +2007-08-15 Frank Ch. Eigler + + * context.stp (cpuid, cpu): Use smp_processor_id(). 2007-08-12 Wenji Huang - * aux_syscalls.stp(_sched_policy_str,_nfsctl_cmd_str) : Add SCHED_BATCH to policy entries, NFSCTL_GETFD,NFSCTL_GETFS to nfsctl entries + * aux_syscalls.stp(_sched_policy_str,_nfsctl_cmd_str): Add SCHED_BATCH to policy entries, + NFSCTL_GETFD,NFSCTL_GETFS to nfsctl entries 2007-08-10 Josh Stone 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