rtla/hwnoise: Reduce runtime to 75%
[linux-2.6-microblaze.git] / tools / tracing / rtla / src / osnoise_top.c
index 85abba5..f7c959b 100644 (file)
@@ -348,8 +348,14 @@ struct osnoise_top_params *osnoise_top_parse_args(int argc, char **argv)
        if (!params)
                exit(1);
 
-       if (strcmp(argv[0], "hwnoise") == 0)
+       if (strcmp(argv[0], "hwnoise") == 0) {
                params->mode = MODE_HWNOISE;
+               /*
+                * Reduce CPU usage for 75% to avoid killing the system.
+                */
+               params->runtime = 750000;
+               params->period = 1000000;
+       }
 
        while (1) {
                static struct option long_options[] = {