Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57757
b: refs/heads/master
c: 72738a9
h: refs/heads/master
i:
  57755: 9dec50c
v: v3
  • Loading branch information
Grant Grundler authored and Kyle McMartin committed May 30, 2007
1 parent d0849f7 commit 1844652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8dff980f1d1392990c6813c86f4bce108d3054fe
refs/heads/master: 72738a96d196a4ffa97712bfa35fa28a05cf0a3a
35 changes: 1 addition & 34 deletions trunk/arch/parisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -954,21 +954,6 @@ intr_return:
/* NOTE: Need to enable interrupts incase we schedule. */
ssm PSW_SM_I, %r0

/* Check for software interrupts */

.import irq_stat,data

load32 irq_stat,%r19
#ifdef CONFIG_SMP
mfctl %cr30,%r1
ldw TI_CPU(%r1),%r1 /* get cpu # - int */
/* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) amount
** irq_stat[] is defined using ____cacheline_aligned.
*/
SHLREG %r1,L1_CACHE_SHIFT,%r20
add %r19,%r20,%r19 /* now have &irq_stat[smp_processor_id()] */
#endif /* CONFIG_SMP */

intr_check_resched:

/* check for reschedule */
Expand Down Expand Up @@ -2055,24 +2040,6 @@ ENTRY(syscall_exit)
*/
loadgp

syscall_check_bh:

/* Check for software interrupts */

.import irq_stat,data

load32 irq_stat,%r19

#ifdef CONFIG_SMP
/* sched.h: int processor */
/* %r26 is used as scratch register to index into irq_stat[] */
ldw TI_CPU-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r26 /* cpu # */

/* shift left ____cacheline_aligned (aka L1_CACHE_BYTES) bits */
SHLREG %r26,L1_CACHE_SHIFT,%r20
add %r19,%r20,%r19 /* now have &irq_stat[smp_processor_id()] */
#endif /* CONFIG_SMP */

syscall_check_resched:

/* check for reschedule */
Expand Down Expand Up @@ -2244,7 +2211,7 @@ syscall_do_resched:
#else
nop
#endif
b syscall_check_bh /* if resched, we start over again */
b syscall_check_resched /* if resched, we start over again */
nop
ENDPROC(syscall_exit)

Expand Down

0 comments on commit 1844652

Please sign in to comment.