From a5969cabbb4660eab42b6ef0412cbbd1200cf14d Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 12 Oct 2024 07:10:09 +0000
Subject: [PATCH] 修改led为gpio
---
kernel/kernel/entry/common.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/kernel/kernel/entry/common.c b/kernel/kernel/entry/common.c
index cdf97ea..09f5885 100644
--- a/kernel/kernel/entry/common.c
+++ b/kernel/kernel/entry/common.c
@@ -2,7 +2,6 @@
#include <linux/context_tracking.h>
#include <linux/entry-common.h>
-#include <linux/highmem.h>
#include <linux/livepatch.h>
#include <linux/audit.h>
@@ -157,16 +156,8 @@
local_irq_enable_exit_to_user(ti_work);
- if (ti_work & _TIF_NEED_RESCHED_MASK)
+ if (ti_work & _TIF_NEED_RESCHED)
schedule();
-
-#ifdef ARCH_RT_DELAYS_SIGNAL_SEND
- if (unlikely(current->forced_info.si_signo)) {
- struct task_struct *t = current;
- force_sig_info(&t->forced_info);
- t->forced_info.si_signo = 0;
- }
-#endif
if (ti_work & _TIF_UPROBE)
uprobe_notify_resume(regs);
@@ -211,7 +202,6 @@
/* Ensure that the address limit is intact and no locks are held */
addr_limit_user_check();
- kmap_assert_nomap();
lockdep_assert_irqs_disabled();
lockdep_sys_exit();
}
@@ -371,7 +361,7 @@
rcu_irq_exit_check_preempt();
if (IS_ENABLED(CONFIG_DEBUG_ENTRY))
WARN_ON_ONCE(!on_thread_stack());
- if (should_resched(0))
+ if (need_resched())
preempt_schedule_irq();
}
}
--
Gitblit v1.6.2