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
0cbf5ed1
Commit
0cbf5ed1
authored
Feb 13, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC updates: call schedule_tail only on SMP, update sched_find_first_bit,
include <linux/binfmts.h> in signal.c.
parent
59790c74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
arch/ppc/kernel/entry.S
arch/ppc/kernel/entry.S
+2
-0
arch/ppc/kernel/signal.c
arch/ppc/kernel/signal.c
+1
-0
include/asm-ppc/mmu_context.h
include/asm-ppc/mmu_context.h
+2
-8
No files found.
arch/ppc/kernel/entry.S
View file @
0cbf5ed1
...
@@ -277,7 +277,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
...
@@ -277,7 +277,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
.
globl
ret_from_fork
.
globl
ret_from_fork
ret_from_fork
:
ret_from_fork
:
#ifdef CONFIG_SMP
bl
schedule_tail
bl
schedule_tail
#endif
rlwinm
r3
,
r1
,
0
,
0
,
18
rlwinm
r3
,
r1
,
0
,
0
,
18
lwz
r3
,
TI_FLAGS
(
r3
)
lwz
r3
,
TI_FLAGS
(
r3
)
andi
.
r0
,
r3
,
_TIF_SYSCALL_TRACE
andi
.
r0
,
r3
,
_TIF_SYSCALL_TRACE
...
...
arch/ppc/kernel/signal.c
View file @
0cbf5ed1
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <linux/stddef.h>
#include <linux/stddef.h>
#include <linux/elf.h>
#include <linux/elf.h>
#include <linux/tty.h>
#include <linux/tty.h>
#include <linux/binfmts.h>
#include <asm/ucontext.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
...
...
include/asm-ppc/mmu_context.h
View file @
0cbf5ed1
...
@@ -10,10 +10,6 @@
...
@@ -10,10 +10,6 @@
#include <asm/bitops.h>
#include <asm/bitops.h>
#include <asm/mmu.h>
#include <asm/mmu.h>
#if MAX_RT_PRIO != 128 || MAX_PRIO != 168
# error update this function.
#endif
static
inline
int
sched_find_first_bit
(
unsigned
long
*
b
)
static
inline
int
sched_find_first_bit
(
unsigned
long
*
b
)
{
{
if
(
unlikely
(
b
[
0
]))
if
(
unlikely
(
b
[
0
]))
...
@@ -22,11 +18,9 @@ static inline int sched_find_first_bit(unsigned long *b)
...
@@ -22,11 +18,9 @@ static inline int sched_find_first_bit(unsigned long *b)
return
__ffs
(
b
[
1
])
+
32
;
return
__ffs
(
b
[
1
])
+
32
;
if
(
unlikely
(
b
[
2
]))
if
(
unlikely
(
b
[
2
]))
return
__ffs
(
b
[
2
])
+
64
;
return
__ffs
(
b
[
2
])
+
64
;
if
(
unlikely
(
b
[
3
])
)
if
(
b
[
3
]
)
return
__ffs
(
b
[
3
])
+
96
;
return
__ffs
(
b
[
3
])
+
96
;
if
(
b
[
4
])
return
__ffs
(
b
[
4
])
+
128
;
return
__ffs
(
b
[
4
])
+
128
;
return
__ffs
(
b
[
5
])
+
32
+
128
;
}
}
/*
/*
...
...
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