@@ -2559,7 +2559,6 @@ static int process_cpu_topology(struct feat_fd *ff, void *data __maybe_unused)
2559
2559
int cpu_nr = ff -> ph -> env .nr_cpus_avail ;
2560
2560
u64 size = 0 ;
2561
2561
struct perf_header * ph = ff -> ph ;
2562
- bool do_core_id_test = true;
2563
2562
2564
2563
ph -> env .cpu = calloc (cpu_nr , sizeof (* ph -> env .cpu ));
2565
2564
if (!ph -> env .cpu )
@@ -2614,15 +2613,6 @@ static int process_cpu_topology(struct feat_fd *ff, void *data __maybe_unused)
2614
2613
return 0 ;
2615
2614
}
2616
2615
2617
- /* On s390 the socket_id number is not related to the numbers of cpus.
2618
- * The socket_id number might be higher than the numbers of cpus.
2619
- * This depends on the configuration.
2620
- * AArch64 is the same.
2621
- */
2622
- if (ph -> env .arch && (!strncmp (ph -> env .arch , "s390" , 4 )
2623
- || !strncmp (ph -> env .arch , "aarch64" , 7 )))
2624
- do_core_id_test = false;
2625
-
2626
2616
for (i = 0 ; i < (u32 )cpu_nr ; i ++ ) {
2627
2617
if (do_read_u32 (ff , & nr ))
2628
2618
goto free_cpu ;
@@ -2633,12 +2623,6 @@ static int process_cpu_topology(struct feat_fd *ff, void *data __maybe_unused)
2633
2623
if (do_read_u32 (ff , & nr ))
2634
2624
goto free_cpu ;
2635
2625
2636
- if (do_core_id_test && nr != (u32 )- 1 && nr > (u32 )cpu_nr ) {
2637
- pr_debug ("socket_id number is too big."
2638
- "You may need to upgrade the perf tool.\n" );
2639
- goto free_cpu ;
2640
- }
2641
-
2642
2626
ph -> env .cpu [i ].socket_id = nr ;
2643
2627
size += sizeof (u32 );
2644
2628
}
0 commit comments