revert the current thread change
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 21 Jun 2006 17:45:19 +0000 (17:45 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 21 Jun 2006 17:45:19 +0000 (17:45 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1943 04897980-b3bd-0310-b5e0-8ef037075253

genevent/genevent.c

index faf362e5543426dd05d4124f073e9c89435cf6de..c788d85a92bc8e9298c59f1be82597d05f7a3b71 100644 (file)
@@ -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");
 
This page took 0.024945 seconds and 4 git commands to generate.