fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf);
 }
 
-static void probe_intel_uncore_frequency(void)
+static void probe_intel_uncore_frequency_legacy(void)
 {
        int i, j;
        char path[256];
 
-       if (!genuine_intel)
-               return;
-
        if (access("/sys/devices/system/cpu/intel_uncore_frequency/package_00_die_00/current_freq_khz", R_OK))
-               goto probe_cluster;
+               return;
 
        BIC_PRESENT(BIC_UNCORE_MHZ);
 
                        fprintf(outf, " %d MHz\n", k / 1000);
                }
        }
-       return;
+}
+
+static void probe_intel_uncore_frequency_cluster(void)
+{
+       int i;
+       char path[256];
 
-probe_cluster:
        if (access("/sys/devices/system/cpu/intel_uncore_frequency/uncore00/current_freq_khz", R_OK))
                return;
 
 
                sprintf(path_base, "/sys/devices/system/cpu/intel_uncore_frequency/uncore%02d", i);
 
+               /* uncore## start at 00 and skip no numbers, so stop upon first missing */
                if (access(path_base, R_OK))
                        break;
 
        }
 }
 
+static void probe_intel_uncore_frequency(void)
+{
+       if (!genuine_intel)
+               return;
+
+       if (access("/sys/devices/system/cpu/intel_uncore_frequency/uncore00", R_OK) == 0)
+               probe_intel_uncore_frequency_cluster();
+       else
+               probe_intel_uncore_frequency_legacy();
+}
+
 static void probe_graphics(void)
 {
        /* Xe graphics sysfs knobs */