update
[lttv.git] / markers-test / test-mark-speed-local.c
index 295a4abe00e9f76490ccf11e40242821615e0883..2e32637e219f8b9005181f6c053dca57700a6d30 100644 (file)
@@ -89,6 +89,10 @@ static int my_open(struct inode *inode, struct file *file)
        unsigned long flags;
 
        local_irq_save(flags);
+#ifdef CACHEFLUSH
+       wbinvd();       /* initial write back, without cycle count */
+       msleep(20);     /* wait for L2 flush */
+#endif
        rdtsc_barrier();
        cycles1 = get_cycles();
        rdtsc_barrier();
This page took 0.029222 seconds and 4 git commands to generate.