Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
147aece2
Commit
147aece2
authored
May 14, 2013
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: Entry Handler tweaks: Simplify branch for in-kernel preemption
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
1898a959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
arch/arc/kernel/entry.S
arch/arc/kernel/entry.S
+2
-6
No files found.
arch/arc/kernel/entry.S
View file @
147aece2
...
...
@@ -586,11 +586,7 @@ ARC_ENTRY ret_from_exception
; Pre-{IRQ,Trap,Exception} K/U mode from pt_regs->status32
ld
r8
,
[
sp
,
PT_status32
]
; returning to User/Kernel Mode
#ifdef CONFIG_PREEMPT
bbit0
r8
,
STATUS_U_BIT
,
resume_kernel_mode
#else
bbit0
r8
,
STATUS_U_BIT
,
restore_regs
#endif
; Before returning to User mode check-for-and-complete any pending work
; such as rescheduling/signal-delivery etc.
...
...
@@ -650,10 +646,10 @@ resume_user_mode_begin:
b
resume_user_mode_begin
; unconditionally back to U mode ret chks
; for single exit point from this block
#ifdef CONFIG_PREEMPT
resume_kernel_mode
:
#ifdef CONFIG_PREEMPT
; Can't preempt if preemption disabled
GET_CURR_THR_INFO_FROM_SP
r10
ld
r8
,
[
r10
,
THREAD_INFO_PREEMPT_COUNT
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment