History

csky: entry: Remove unneeded need_resched() loop

Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop.

Valentin Schneider committed 7 years ago

Commit a2139d31 parent 3a09d8e1 file · +0 −4Browse files

Unified · Split

arch/csky/kernel/entry.S+0−4
@@ -302,11 +302,7 @@ ENTRY(csky_irq) · 301 unmodified lines
302 ldw r12, (r9, TINFO_FLAGS)302 ldw r12, (r9, TINFO_FLAGS)
303 btsti r12, TIF_NEED_RESCHED303 btsti r12, TIF_NEED_RESCHED
304 bf 2f304 bf 2f
3051:
306 jbsr preempt_schedule_irq /* irq en/disable is done inside */305 jbsr preempt_schedule_irq /* irq en/disable is done inside */
307 ldw r7, (r9, TINFO_FLAGS) /* get new tasks TI_FLAGS */
308 btsti r7, TIF_NEED_RESCHED
309 bt 1b /* go again */
310#endif306#endif
3112:3072:
312 jmpi ret_from_exception308 jmpi ret_from_exception

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t