hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/arch/ia64/include/asm/switch_to.h
....@@ -31,16 +31,8 @@
3131 extern void ia64_save_extra (struct task_struct *task);
3232 extern void ia64_load_extra (struct task_struct *task);
3333
34
-#ifdef CONFIG_PERFMON
35
- DECLARE_PER_CPU(unsigned long, pfm_syst_info);
36
-# define PERFMON_IS_SYSWIDE() (__this_cpu_read(pfm_syst_info) & 0x1)
37
-#else
38
-# define PERFMON_IS_SYSWIDE() (0)
39
-#endif
40
-
4134 #define IA64_HAS_EXTRA_STATE(t) \
42
- ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID) \
43
- || PERFMON_IS_SYSWIDE())
35
+ ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID))
4436
4537 #define __switch_to(prev,next,last) do { \
4638 if (IA64_HAS_EXTRA_STATE(prev)) \
....@@ -69,7 +61,6 @@
6961 if (unlikely((current->thread.flags & IA64_THREAD_MIGRATION) && \
7062 (task_cpu(current) != \
7163 task_thread_info(current)->last_cpu))) { \
72
- platform_migrate(current); \
7364 task_thread_info(current)->last_cpu = task_cpu(current); \
7465 } \
7566 } while (0)