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
f03da6e2
Commit
f03da6e2
authored
Apr 13, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BogoMIPS display on UP and some minor cosmetical things.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
589391a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
+5
-8
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+0
-1
arch/mips/kernel/smp.c
arch/mips/kernel/smp.c
+0
-1
include/asm-mips/bugs.h
include/asm-mips/bugs.h
+5
-0
include/asm-mips/delay.h
include/asm-mips/delay.h
+0
-6
No files found.
arch/mips/kernel/cpu-probe.c
View file @
f03da6e2
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#include <linux/ptrace.h>
#include <linux/ptrace.h>
#include <linux/stddef.h>
#include <linux/stddef.h>
#include <asm/bugs.h>
#include <asm/cpu.h>
#include <asm/cpu.h>
#include <asm/fpu.h>
#include <asm/fpu.h>
#include <asm/mipsregs.h>
#include <asm/mipsregs.h>
...
...
arch/mips/kernel/smp.c
View file @
f03da6e2
...
@@ -226,7 +226,6 @@ void __init smp_cpus_done(unsigned int max_cpus)
...
@@ -226,7 +226,6 @@ void __init smp_cpus_done(unsigned int max_cpus)
/* called from main before smp_init() */
/* called from main before smp_init() */
void
__init
smp_prepare_cpus
(
unsigned
int
max_cpus
)
void
__init
smp_prepare_cpus
(
unsigned
int
max_cpus
)
{
{
cpu_data
[
0
].
udelay_val
=
loops_per_jiffy
;
init_new_context
(
current
,
&
init_mm
);
init_new_context
(
current
,
&
init_mm
);
current_thread_info
()
->
cpu
=
0
;
current_thread_info
()
->
cpu
=
0
;
smp_tune_scheduling
();
smp_tune_scheduling
();
...
...
include/asm-mips/bugs.h
View file @
f03da6e2
...
@@ -8,12 +8,17 @@
...
@@ -8,12 +8,17 @@
#define _ASM_BUGS_H
#define _ASM_BUGS_H
#include <linux/config.h>
#include <linux/config.h>
#include <asm/cpu.h>
#include <asm/cpu-info.h>
extern
void
check_bugs32
(
void
);
extern
void
check_bugs32
(
void
);
extern
void
check_bugs64
(
void
);
extern
void
check_bugs64
(
void
);
static
inline
void
check_bugs
(
void
)
static
inline
void
check_bugs
(
void
)
{
{
unsigned
int
cpu
=
smp_processor_id
();
cpu_data
[
cpu
].
udelay_val
=
loops_per_jiffy
;
check_bugs32
();
check_bugs32
();
#ifdef CONFIG_64BIT
#ifdef CONFIG_64BIT
check_bugs64
();
check_bugs64
();
...
...
include/asm-mips/delay.h
View file @
f03da6e2
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
#include <asm/compiler.h>
#include <asm/compiler.h>
extern
unsigned
long
loops_per_jiffy
;
static
inline
void
__delay
(
unsigned
long
loops
)
static
inline
void
__delay
(
unsigned
long
loops
)
{
{
if
(
sizeof
(
long
)
==
4
)
if
(
sizeof
(
long
)
==
4
)
...
@@ -82,11 +80,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj)
...
@@ -82,11 +80,7 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj)
__delay
(
usecs
);
__delay
(
usecs
);
}
}
#ifdef CONFIG_SMP
#define __udelay_val cpu_data[smp_processor_id()].udelay_val
#define __udelay_val cpu_data[smp_processor_id()].udelay_val
#else
#define __udelay_val loops_per_jiffy
#endif
#define udelay(usecs) __udelay((usecs),__udelay_val)
#define udelay(usecs) __udelay((usecs),__udelay_val)
...
...
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