hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/kernel/entry/common.c
....@@ -2,7 +2,6 @@
22
33 #include <linux/context_tracking.h>
44 #include <linux/entry-common.h>
5
-#include <linux/highmem.h>
65 #include <linux/livepatch.h>
76 #include <linux/audit.h>
87
....@@ -157,16 +156,8 @@
157156
158157 local_irq_enable_exit_to_user(ti_work);
159158
160
- if (ti_work & _TIF_NEED_RESCHED_MASK)
159
+ if (ti_work & _TIF_NEED_RESCHED)
161160 schedule();
162
-
163
-#ifdef ARCH_RT_DELAYS_SIGNAL_SEND
164
- if (unlikely(current->forced_info.si_signo)) {
165
- struct task_struct *t = current;
166
- force_sig_info(&t->forced_info);
167
- t->forced_info.si_signo = 0;
168
- }
169
-#endif
170161
171162 if (ti_work & _TIF_UPROBE)
172163 uprobe_notify_resume(regs);
....@@ -211,7 +202,6 @@
211202
212203 /* Ensure that the address limit is intact and no locks are held */
213204 addr_limit_user_check();
214
- kmap_assert_nomap();
215205 lockdep_assert_irqs_disabled();
216206 lockdep_sys_exit();
217207 }
....@@ -371,7 +361,7 @@
371361 rcu_irq_exit_check_preempt();
372362 if (IS_ENABLED(CONFIG_DEBUG_ENTRY))
373363 WARN_ON_ONCE(!on_thread_stack());
374
- if (should_resched(0))
364
+ if (need_resched())
375365 preempt_schedule_irq();
376366 }
377367 }