@@ -1737,17 +1737,17 @@ sd_init(struct sched_domain_topology_level *tl,
17371737 */
17381738static struct sched_domain_topology_level default_topology [] = {
17391739#ifdef CONFIG_SCHED_SMT
1740- { cpu_smt_mask , cpu_smt_flags , SD_INIT_NAME ( SMT ) } ,
1740+ SDTL_INIT ( cpu_smt_mask , cpu_smt_flags , SMT ),
17411741#endif
17421742
17431743#ifdef CONFIG_SCHED_CLUSTER
1744- { cpu_clustergroup_mask , cpu_cluster_flags , SD_INIT_NAME ( CLS ) } ,
1744+ SDTL_INIT ( cpu_clustergroup_mask , cpu_cluster_flags , CLS ),
17451745#endif
17461746
17471747#ifdef CONFIG_SCHED_MC
1748- { cpu_coregroup_mask , cpu_core_flags , SD_INIT_NAME ( MC ) } ,
1748+ SDTL_INIT ( cpu_coregroup_mask , cpu_core_flags , MC ),
17491749#endif
1750- { cpu_cpu_mask , SD_INIT_NAME ( PKG ) } ,
1750+ SDTL_INIT ( cpu_cpu_mask , NULL , PKG ),
17511751 { NULL , },
17521752};
17531753
@@ -2008,23 +2008,15 @@ void sched_init_numa(int offline_node)
20082008 /*
20092009 * Add the NUMA identity distance, aka single NODE.
20102010 */
2011- tl [i ++ ] = (struct sched_domain_topology_level ){
2012- .mask = sd_numa_mask ,
2013- .numa_level = 0 ,
2014- SD_INIT_NAME (NODE )
2015- };
2011+ tl [i ++ ] = SDTL_INIT (sd_numa_mask , NULL , NODE );
20162012
20172013 /*
20182014 * .. and append 'j' levels of NUMA goodness.
20192015 */
20202016 for (j = 1 ; j < nr_levels ; i ++ , j ++ ) {
2021- tl [i ] = (struct sched_domain_topology_level ){
2022- .mask = sd_numa_mask ,
2023- .sd_flags = cpu_numa_flags ,
2024- .flags = SDTL_OVERLAP ,
2025- .numa_level = j ,
2026- SD_INIT_NAME (NUMA )
2027- };
2017+ tl [i ] = SDTL_INIT (sd_numa_mask , cpu_numa_flags , NUMA );
2018+ tl [i ].numa_level = j ;
2019+ tl [i ].flags = SDTL_OVERLAP ;
20282020 }
20292021
20302022 sched_domain_topology_saved = sched_domain_topology ;
0 commit comments