File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1808,6 +1808,7 @@ static int __init parallel_bringup_parse_param(char *arg)
1808
1808
}
1809
1809
early_param ("cpuhp.parallel" , parallel_bringup_parse_param );
1810
1810
1811
+ #ifdef CONFIG_HOTPLUG_SMT
1811
1812
static inline bool cpuhp_smt_aware (void )
1812
1813
{
1813
1814
return cpu_smt_max_threads > 1 ;
@@ -1817,6 +1818,16 @@ static inline const struct cpumask *cpuhp_get_primary_thread_mask(void)
1817
1818
{
1818
1819
return cpu_primary_thread_mask ;
1819
1820
}
1821
+ #else
1822
+ static inline bool cpuhp_smt_aware (void )
1823
+ {
1824
+ return false;
1825
+ }
1826
+ static inline const struct cpumask * cpuhp_get_primary_thread_mask (void )
1827
+ {
1828
+ return cpu_none_mask ;
1829
+ }
1830
+ #endif
1820
1831
1821
1832
/*
1822
1833
* On architectures which have enabled parallel bringup this invokes all BP
You can’t perform that action at this time.
0 commit comments