update rcu
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 8 May 2008 09:45:59 +0000 (09:45 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 8 May 2008 09:45:59 +0000 (09:45 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2904 04897980-b3bd-0310-b5e0-8ef037075253

tests/kernel/test-rcu-speed.c

index 1475881d509423cb955ab111847a33d7af78e73f..2f18ae4ec800592c495d1de822cb2fd602519945 100644 (file)
@@ -81,18 +81,18 @@ static void do_test_seqlock(void)
        cycles_t time1, time2, time;
        long rem;
 
-       local_irq_save(flags);
+       //local_irq_save(flags);
        preempt_disable();
        time1 = get_cycles();
        for (i = 0; i < NR_LOOPS; i++) {
                do {
-                       seq = read_seqbegin(&test_lock);
-               } while (read_seqretry(&test_lock, seq));
+                       seq = read_seqbegin_irqsave(&test_lock, flags);
+               } while (read_seqretry_irqrestore(&test_lock, seq, flags));
        }
        time2 = get_cycles();
        preempt_enable();
        time = time2 - time1;
-       local_irq_restore(flags);
+       //local_irq_restore(flags);
 
        printk(KERN_ALERT "test results: time for seqlock\n");
        printk(KERN_ALERT "number of loops: %d\n", NR_LOOPS);
This page took 0.024692 seconds and 4 git commands to generate.