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
f4c6b6bc
Commit
f4c6b6bc
authored
Sep 17, 2009
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Consolidate all CONFIG_CPU_HAS_LLSC use in a single C file.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
6eb10bc9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
arch/mips/include/asm/system.h
arch/mips/include/asm/system.h
+12
-0
arch/mips/kernel/octeon_switch.S
arch/mips/kernel/octeon_switch.S
+0
-3
arch/mips/kernel/r2300_switch.S
arch/mips/kernel/r2300_switch.S
+0
-3
arch/mips/kernel/r4k_switch.S
arch/mips/kernel/r4k_switch.S
+0
-3
No files found.
arch/mips/include/asm/system.h
View file @
f4c6b6bc
...
...
@@ -63,11 +63,23 @@ do { \
#define __mips_mt_fpaff_switch_to(prev) do { (void) (prev); } while (0)
#endif
#ifdef CONFIG_CPU_HAS_LLSC
#define __clear_software_ll_bit() do { } while (0)
#else
extern
unsigned
long
ll_bit
;
#define __clear_software_ll_bit() \
do { \
ll_bit = 0; \
} while (0)
#endif
#define switch_to(prev, next, last) \
do { \
__mips_mt_fpaff_switch_to(prev); \
if (cpu_has_dsp) \
__save_dsp(prev); \
__clear_software_ll_bit(); \
(last) = resume(prev, next, task_thread_info(next)); \
} while (0)
...
...
arch/mips/kernel/octeon_switch.S
View file @
f4c6b6bc
...
...
@@ -36,9 +36,6 @@
.
align
7
LEAF
(
resume
)
.
set
arch
=
octeon
#ifndef CONFIG_CPU_HAS_LLSC
sw
zero
,
ll_bit
#endif
mfc0
t1
,
CP0_STATUS
LONG_S
t1
,
THREAD_STATUS
(
a0
)
cpu_save_nonscratch
a0
...
...
arch/mips/kernel/r2300_switch.S
View file @
f4c6b6bc
...
...
@@ -46,9 +46,6 @@
*
struct
thread_info
*
next_ti
)
)
*/
LEAF
(
resume
)
#ifndef CONFIG_CPU_HAS_LLSC
sw
zero
,
ll_bit
#endif
mfc0
t1
,
CP0_STATUS
sw
t1
,
THREAD_STATUS
(
a0
)
cpu_save_nonscratch
a0
...
...
arch/mips/kernel/r4k_switch.S
View file @
f4c6b6bc
...
...
@@ -45,9 +45,6 @@
*/
.
align
5
LEAF
(
resume
)
#ifndef CONFIG_CPU_HAS_LLSC
sw
zero
,
ll_bit
#endif
mfc0
t1
,
CP0_STATUS
LONG_S
t1
,
THREAD_STATUS
(
a0
)
cpu_save_nonscratch
a0
...
...
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