tools/power turbostat: Repair Segmentation fault when using -i option
[linux-drm-fsl-dcu.git] / tools / power / x86 / turbostat / turbostat.c
index 2655ae9a3ad8d9e6f7676006336a5e3b8fec99d1..9942dee3df413948a3bda054d582123e3e928054 100644 (file)
@@ -1594,7 +1594,7 @@ void cmdline(int argc, char **argv)
 
        progname = argv[0];
 
-       while ((opt = getopt(argc, argv, "+pPSvisc:sC:m:M:")) != -1) {
+       while ((opt = getopt(argc, argv, "+pPSvi:sc:sC:m:M:")) != -1) {
                switch (opt) {
                case 'p':
                        show_core_only++;