Files
twx-linux/include/linux
Josh Poimboeuf 7929187c67 sched/smt: Always inline sched_smt_active()
[ Upstream commit 09f37f2d7b ]

sched_smt_active() can be called from noinstr code, so it should always
be inlined.  The CONFIG_SCHED_SMT version already has __always_inline.
Do the same for its !CONFIG_SCHED_SMT counterpart.

Fixes the following warning:

  vmlinux.o: error: objtool: intel_idle_ibrs+0x13: call to sched_smt_active() leaves .noinstr.text section

Fixes: 321a874a7e ("sched/smt: Expose sched_smt_present static key")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/1d03907b0a247cf7fb5c1d518de378864f603060.1743481539.git.jpoimboe@kernel.org
Closes: https://lore.kernel.org/r/202503311434.lyw2Tveh-lkp@intel.com/
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:32:03 +02:00
..
2024-01-25 14:52:51 -08:00
2021-05-06 19:24:11 -07:00
2020-05-24 20:48:11 +02:00
2021-01-24 14:27:17 +01:00
2021-04-08 16:04:20 -07:00
2018-06-15 18:10:01 -03:00
2024-07-05 09:14:50 +02:00
2021-12-14 10:57:11 +01:00
2021-03-22 03:57:39 +01:00
2021-08-26 15:32:28 -04:00
2018-01-01 12:40:27 -07:00
2024-12-14 19:51:34 +01:00
2024-04-10 16:19:07 +02:00
2021-09-06 07:20:56 -04:00
2020-11-16 16:31:41 +01:00
2019-06-26 13:19:46 -07:00
2020-12-02 22:10:35 -08:00
2018-06-22 13:43:27 +09:00
2020-09-16 08:54:53 -05:00
2021-07-27 17:05:06 +01:00
2019-12-11 09:12:38 +01:00
2021-01-21 16:16:10 +00:00
2024-04-10 16:18:55 +02:00
2020-05-08 00:12:42 +02:00
2021-06-17 13:09:27 -04:00
2021-06-29 10:53:53 -07:00
2021-07-01 11:06:05 -07:00
2024-04-10 16:19:00 +02:00
2023-08-26 14:23:39 +02:00
2020-07-01 10:49:02 +02:00
2024-01-25 14:52:33 -08:00
2021-09-17 13:52:17 +01:00
2021-02-26 09:40:59 -08:00
2021-02-03 19:05:50 +01:00
2025-03-13 12:50:47 +01:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2020-05-09 13:57:12 +02:00
2019-06-15 12:25:49 +02:00
2018-07-20 01:11:45 +02:00
2020-12-03 11:20:52 +01:00
2018-09-25 20:17:35 -07:00
2025-02-01 18:23:59 +01:00
2021-03-18 12:58:27 -04:00
2022-07-12 16:35:08 +02:00
2020-12-10 16:17:15 +01:00
2025-04-10 14:31:49 +02:00
2020-12-10 10:45:36 +01:00
2021-05-10 16:03:35 -07:00
2021-08-06 13:41:48 -07:00
2021-08-19 09:02:55 +09:00
2018-10-11 09:16:44 -07:00
2020-10-30 21:57:04 +01:00
2021-07-27 12:17:21 +02:00
2021-07-27 12:12:08 +02:00
2021-02-13 17:17:53 +01:00
2020-09-10 14:03:31 -07:00
2024-10-17 15:11:06 +02:00
2019-05-15 17:35:54 +01:00
2021-03-30 13:42:33 -04:00