Arnd Bergmann
dc8d37ed30
cpu/SMT: Fix x86 link error without CONFIG_SYSFS
...
When CONFIG_SYSFS is disabled, but CONFIG_HOTPLUG_SMT is enabled,
the kernel fails to link:
arch/x86/power/cpu.o: In function `hibernate_resume_nonboot_cpu_disable':
(.text+0x38d): undefined reference to `cpuhp_smt_enable'
arch/x86/power/hibernate.o: In function `arch_resume_nosmt':
hibernate.c:(.text+0x291): undefined reference to `cpuhp_smt_enable'
hibernate.c:(.text+0x29c): undefined reference to `cpuhp_smt_disable'
Move the exported functions out of the #ifdef section into its
own with the correct conditions.
The patch that caused this is marked for stable backports, so
this one may need to be backported as well.
Fixes: ec527c3180 ("x86/power: Fix 'nosmt' vs hibernation triple fault during resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Jiri Kosina <jkosina@suse.cz >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191210195614.786555-1-arnd@arndb.de
2020-01-09 17:31:45 +01:00
..
2019-12-22 17:21:10 -08:00
2019-11-25 19:23:46 -08:00
2019-10-28 12:08:29 +00:00
2019-12-04 19:44:13 -08:00
2019-12-17 13:32:46 +01:00
2019-09-15 21:37:13 +02:00
2019-11-20 14:16:34 +01:00
2019-11-27 11:42:01 -08:00
2019-12-11 00:27:43 +01:00
2019-12-04 10:48:09 -08:00
2019-12-03 09:29:50 -08:00
2019-10-30 08:47:13 -07:00
2019-12-21 10:52:10 -08:00
2019-12-30 20:19:27 -08:00
2019-12-21 16:08:59 -05:00
2019-04-29 16:48:03 +02:00
2019-04-04 21:04:13 -04:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-04-26 13:51:03 -04:00
2019-11-10 11:56:55 -05:00
2019-10-25 11:48:14 -04:00
2019-07-08 18:55:42 -07:00
2019-07-08 18:55:42 -07:00
2019-11-23 09:56:02 -08:00
2019-06-05 17:37:17 +02:00
2019-11-15 14:38:30 +01:00
2019-07-30 18:34:15 +02:00
2019-10-29 10:01:12 +01:00
2019-06-05 17:36:37 +02:00
2020-01-09 17:31:45 +01:00
2019-06-19 17:09:06 +02:00
2019-05-21 10:50:45 +02:00
2020-01-04 13:55:09 -08:00
2019-05-21 11:52:39 +02:00
2019-09-25 17:51:39 -07:00
2020-01-03 11:17:14 -08:00
2019-10-17 16:44:36 +02:00
2019-06-03 15:49:06 +02:00
2019-12-03 12:20:25 -08:00
2019-10-06 09:11:37 -06:00
2019-11-20 09:40:38 +01:00
2019-11-11 20:10:01 +09:00
2019-05-21 10:50:45 +02:00
2019-07-12 11:05:40 -07:00
2019-11-15 10:48:37 +01:00
2019-08-29 15:10:10 +01:00
2019-08-27 16:19:56 +01:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-11-12 11:35:32 +01:00
2019-12-04 19:44:14 -08:00
2019-09-25 17:51:40 -07:00
2019-09-06 23:58:44 +02:00
2019-11-01 21:42:58 +01:00
2019-08-19 21:54:15 -07:00
2019-05-24 20:16:01 +02:00
2019-09-20 11:19:48 -07:00
2019-05-30 11:26:39 -07:00
2019-10-16 09:20:58 -07:00
2019-06-05 17:37:17 +02:00
2019-12-02 17:35:04 -08:00
2019-08-05 18:39:56 -04:00
2019-08-05 18:39:56 -04:00
2019-05-24 17:27:11 +02:00
2019-12-11 12:22:38 -08:00
2019-12-04 19:44:12 -08:00
2019-06-05 17:37:17 +02:00
2019-09-13 21:15:41 +10:00
2019-11-25 09:15:42 +01:00
2019-08-19 21:54:16 -07:00
2019-11-15 23:49:22 +01:00
2019-11-15 23:49:22 +01:00
2019-12-04 19:44:12 -08:00
2019-07-16 19:23:24 -07:00
2019-05-21 10:50:45 +02:00
2019-03-12 13:27:20 -07:00
2019-09-24 15:54:09 -07:00
2019-05-27 09:36:28 -05:00
2020-01-02 13:03:45 -08:00
2019-10-11 08:39:57 -07:00
2019-07-20 11:27:16 +02:00
2019-05-21 10:50:45 +02:00
2019-07-08 11:01:13 -07:00
2019-11-11 10:30:59 +01:00
2019-10-31 09:33:19 +01:00
2019-11-15 14:38:30 +01:00
2019-12-04 19:44:12 -08:00
2019-11-26 13:03:56 -06:00
2019-09-30 17:35:01 -06:00
2019-12-01 12:59:07 -08:00
2019-12-04 15:18:39 +01:00
2019-05-21 11:52:39 +02:00
2019-08-01 14:30:22 -07:00
2019-07-18 11:51:00 -07:00
2019-05-30 11:26:37 -07:00
2019-07-18 17:08:07 -07:00
2019-05-21 10:50:45 +02:00
2019-06-23 14:26:26 +02:00
2019-07-08 19:36:47 -07:00
2019-05-21 10:50:45 +02:00
2019-07-08 19:36:47 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2019-04-19 09:46:05 -07:00
2019-08-01 20:51:20 +02:00
2019-04-16 16:55:15 +02:00
2019-12-06 09:59:30 +01:00