chao an
feb6ede434
sched/cpu: replace up_cpu_index() to this_cpu()
...
In SMP mode, up_cpu_index()/this_cpu() are the same, both return the index of the physical core.
In AMP mode, up_cpu_index() will return the index of the physical core, and this_cpu() will always return 0
| #ifdef CONFIG_SMP
| # define this_cpu() up_cpu_index()
| #elif defined(CONFIG_AMP)
| # define this_cpu() (0)
| #else
| # define this_cpu() (0)
| #endif
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:52:35 +08:00
..
2023-11-22 08:05:58 -08:00
2023-11-22 08:05:58 -08:00
2022-09-28 18:08:37 +08:00
2022-12-15 09:44:32 +08:00
2024-03-21 11:23:46 +09:00
2022-10-11 00:01:35 +02:00
2023-11-01 09:27:56 +08:00
2023-11-01 09:27:56 +08:00
2024-03-21 18:51:25 +08:00
2021-02-09 01:21:53 -08:00
2024-03-21 11:23:46 +09:00
2023-10-02 16:11:43 +02:00
2024-03-21 18:51:25 +08:00
2023-12-14 20:02:52 -08:00
2024-03-05 09:45:49 +08:00
2023-11-22 08:05:58 -08:00
2021-02-09 01:21:53 -08:00
2024-03-21 18:52:35 +08:00
2023-04-27 17:35:58 +08:00
2021-06-03 08:36:03 -07:00
2021-02-09 01:21:53 -08:00
2024-03-21 18:51:25 +08:00
2024-03-21 18:51:25 +08:00
2024-03-21 11:23:46 +09:00
2021-02-09 01:21:53 -08:00
2024-03-21 11:23:46 +09:00
2022-09-30 17:54:56 +02:00
2023-08-04 10:58:54 -07:00
2024-03-21 18:51:25 +08:00
2024-02-21 21:29:48 -08:00
2024-03-21 11:23:46 +09:00
2022-10-03 15:14:24 -03:00
2024-03-21 11:23:46 +09:00
2022-09-17 17:37:47 +09:00
2023-02-01 23:47:44 +08:00
2021-02-09 01:21:53 -08:00
2020-05-09 14:19:08 -03:00
2021-01-20 21:52:58 -08:00
2021-02-09 01:21:53 -08:00
2024-03-21 11:23:46 +09:00
2023-02-02 10:33:01 +08:00
2023-10-18 21:12:35 +08:00
2023-08-30 14:34:20 +08:00
2024-03-21 11:23:46 +09:00
2021-02-09 01:21:53 -08:00
2023-11-01 09:27:56 +08:00
2020-09-03 10:20:20 +08:00
2023-12-17 08:25:11 -06:00
2024-03-21 11:23:46 +09:00
2024-03-21 18:51:25 +08:00
2022-10-28 21:19:46 +02:00
2022-10-28 21:19:46 +02:00
2023-09-08 00:53:56 +03:00
2021-02-09 01:21:53 -08:00
2024-03-21 18:52:35 +08:00