|
@@ -429,7 +429,7 @@ static int apbt_cpuhp_notify(struct notifier_block *n,
|
|
|
|
|
|
static __init int apbt_late_init(void)
|
|
static __init int apbt_late_init(void)
|
|
{
|
|
{
|
|
- if (disable_apbt_percpu)
|
|
|
|
|
|
+ if (disable_apbt_percpu || !apb_timer_block_enabled)
|
|
return 0;
|
|
return 0;
|
|
/* This notifier should be called after workqueue is ready */
|
|
/* This notifier should be called after workqueue is ready */
|
|
hotcpu_notifier(apbt_cpuhp_notify, -20);
|
|
hotcpu_notifier(apbt_cpuhp_notify, -20);
|