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
nexedi
linux
Commits
30088b54
Commit
30088b54
authored
Jan 17, 2003
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some SMP fixes.
parent
90f65268
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
arch/um/kernel/ksyms.c
arch/um/kernel/ksyms.c
+0
-1
arch/um/kernel/process.c
arch/um/kernel/process.c
+7
-7
arch/um/kernel/smp.c
arch/um/kernel/smp.c
+3
-2
No files found.
arch/um/kernel/ksyms.c
View file @
30088b54
...
...
@@ -75,7 +75,6 @@ EXPORT_SYMBOL_NOVERS(__write_lock_failed);
extern
void
FASTCALL
(
__read_lock_failed
(
rwlock_t
*
rw
));
EXPORT_SYMBOL_NOVERS
(
__read_lock_failed
);
EXPORT_SYMBOL
(
smp_num_cpus
);
#endif
#ifdef CONFIG_HIGHMEM
...
...
arch/um/kernel/process.c
View file @
30088b54
...
...
@@ -256,27 +256,27 @@ int can_do_skas(void)
void
*
stack
;
int
pid
,
n
,
ret
=
1
;
print
k
(
"Checking for the skas3 patch in the host..."
);
print
f
(
"Checking for the skas3 patch in the host..."
);
pid
=
start_ptraced_child
(
&
stack
);
n
=
ptrace
(
PTRACE_FAULTINFO
,
pid
,
0
,
&
fi
);
if
(
n
<
0
){
if
(
errno
==
EIO
)
print
k
(
"not found
\n
"
);
else
print
k
(
"No (unexpected errno - %d)
\n
"
,
errno
);
print
f
(
"not found
\n
"
);
else
print
f
(
"No (unexpected errno - %d)
\n
"
,
errno
);
ret
=
0
;
}
else
print
k
(
"found
\n
"
);
else
print
f
(
"found
\n
"
);
init_registers
(
pid
);
stop_ptraced_child
(
pid
,
stack
,
1
);
print
k
(
"Checking for /proc/mm..."
);
print
f
(
"Checking for /proc/mm..."
);
if
(
access
(
"/proc/mm"
,
W_OK
)){
print
k
(
"not found
\n
"
);
print
f
(
"not found
\n
"
);
ret
=
0
;
}
else
print
k
(
"found
\n
"
);
else
print
f
(
"found
\n
"
);
return
(
ret
);
#else
...
...
arch/um/kernel/smp.c
View file @
30088b54
...
...
@@ -13,6 +13,7 @@ unsigned long cpu_online_map = 1;
#include "linux/sched.h"
#include "linux/threads.h"
#include "linux/interrupt.h"
#include "linux/err.h"
#include "asm/smp.h"
#include "asm/processor.h"
#include "asm/spinlock.h"
...
...
@@ -140,7 +141,7 @@ static struct task_struct *idle_thread(int cpu)
current
->
thread
.
request
.
u
.
thread
.
proc
=
idle_proc
;
current
->
thread
.
request
.
u
.
thread
.
arg
=
(
void
*
)
cpu
;
new_task
=
do_fork
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
NULL
,
0
,
NULL
);
new_task
=
do_fork
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
NULL
,
0
,
NULL
,
NULL
);
if
(
IS_ERR
(
new_task
))
panic
(
"do_fork failed in idle_thread"
);
cpu_tasks
[
cpu
]
=
((
struct
cpu_task
)
...
...
@@ -186,7 +187,7 @@ void smp_prepare_cpus(unsigned int maxcpus)
}
}
void
__devinit
smp_prepare_boot_cpu
(
void
)
void
smp_prepare_boot_cpu
(
void
)
{
set_bit
(
smp_processor_id
(),
&
cpu_online_map
);
}
...
...
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