From 358f8354d75418337e567bd76a01b891ac22e210 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 21 Jun 2006 17:45:19 +0000 Subject: [PATCH] revert the current thread change git-svn-id: http://ltt.polymtl.ca/svn@1943 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent/genevent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genevent/genevent.c b/genevent/genevent.c index faf362e5..c788d85a 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -1508,7 +1508,7 @@ int print_event_logging_function(char *basename, facility_t *fac, print_tabs(1, fd); fprintf(fd, "preempt_disable();\n"); print_tabs(1, fd); - fprintf(fd, "current->ltt_nesting++;\n"); + fprintf(fd, "ltt_nesting[smp_processor_id()]++;\n"); /* Get facility index */ @@ -1632,7 +1632,7 @@ int print_event_logging_function(char *basename, facility_t *fac, /* Release locks */ print_tabs(1, fd); - fprintf(fd, "current->ltt_nesting--;\n"); + fprintf(fd, "ltt_nesting[smp_processor_id()]--;\n"); print_tabs(1, fd); fprintf(fd, "preempt_enable_no_resched();\n"); -- 2.34.1