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
c2198b52
Commit
c2198b52
authored
Feb 11, 2002
by
Richard Henderson
Committed by
Richard Henderson
Feb 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for the -K3 scheduler.
parent
95a23f58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+2
-0
arch/alpha/kernel/process.c
arch/alpha/kernel/process.c
+5
-0
include/asm-alpha/mmu_context.h
include/asm-alpha/mmu_context.h
+3
-6
No files found.
arch/alpha/kernel/entry.S
View file @
c2198b52
...
@@ -497,6 +497,7 @@ alpha_switch_to:
...
@@ -497,6 +497,7 @@ alpha_switch_to:
ret
$
31
,(
$
26
),
1
ret
$
31
,(
$
26
),
1
.
end
alpha_switch_to
.
end
alpha_switch_to
#ifdef CONFIG_SMP
.
globl
ret_from_fork
.
globl
ret_from_fork
.
align
3
.
align
3
.
ent
ret_from_fork
.
ent
ret_from_fork
...
@@ -505,6 +506,7 @@ ret_from_fork:
...
@@ -505,6 +506,7 @@ ret_from_fork:
mov
$
0
,
$
16
mov
$
0
,
$
16
jmp
$
31
,
schedule_tail
jmp
$
31
,
schedule_tail
.
end
ret_from_fork
.
end
ret_from_fork
#endif
/*
/*
*
Oh
,
well
..
Disassembling
OSF
/
1
binaries
to
find
out
how
the
*
Oh
,
well
..
Disassembling
OSF
/
1
binaries
to
find
out
how
the
...
...
arch/alpha/kernel/process.c
View file @
c2198b52
...
@@ -283,6 +283,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
...
@@ -283,6 +283,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
unsigned
long
unused
,
unsigned
long
unused
,
struct
task_struct
*
p
,
struct
pt_regs
*
regs
)
struct
task_struct
*
p
,
struct
pt_regs
*
regs
)
{
{
extern
void
ret_from_sys_call
(
void
);
extern
void
ret_from_fork
(
void
);
extern
void
ret_from_fork
(
void
);
struct
thread_info
*
childti
=
p
->
thread_info
;
struct
thread_info
*
childti
=
p
->
thread_info
;
...
@@ -304,7 +305,11 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
...
@@ -304,7 +305,11 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
stack
=
((
struct
switch_stack
*
)
regs
)
-
1
;
stack
=
((
struct
switch_stack
*
)
regs
)
-
1
;
childstack
=
((
struct
switch_stack
*
)
childregs
)
-
1
;
childstack
=
((
struct
switch_stack
*
)
childregs
)
-
1
;
*
childstack
=
*
stack
;
*
childstack
=
*
stack
;
#ifdef CONFIG_SMP
childstack
->
r26
=
(
unsigned
long
)
ret_from_fork
;
childstack
->
r26
=
(
unsigned
long
)
ret_from_fork
;
#else
childstack
->
r26
=
(
unsigned
long
)
ret_from_sys_call
;
#endif
childti
->
pcb
.
usp
=
usp
;
childti
->
pcb
.
usp
=
usp
;
childti
->
pcb
.
ksp
=
(
unsigned
long
)
childstack
;
childti
->
pcb
.
ksp
=
(
unsigned
long
)
childstack
;
childti
->
pcb
.
flags
=
1
;
/* set FEN, clear everything else */
childti
->
pcb
.
flags
=
1
;
/* set FEN, clear everything else */
...
...
include/asm-alpha/mmu_context.h
View file @
c2198b52
...
@@ -24,13 +24,10 @@
...
@@ -24,13 +24,10 @@
/* ??? This does not belong here. */
/* ??? This does not belong here. */
/*
/*
* Every architecture must define this function. It's the fastest
* Every architecture must define this function. It's the fastest
* way of searching a 1
68-bit bitmap where the first 128
bits are
* way of searching a 1
40-bit bitmap where the first 100
bits are
* unlikely to be set. It's guaranteed that at least one of the 1
68
* unlikely to be set. It's guaranteed that at least one of the 1
40
* bits is
set
.
* bits is
cleared
.
*/
*/
#if MAX_RT_PRIO != 128 || MAX_PRIO > 192
# error update this function.
#endif
static
inline
int
static
inline
int
sched_find_first_bit
(
unsigned
long
*
b
)
sched_find_first_bit
(
unsigned
long
*
b
)
...
...
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