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
6ba65383
Commit
6ba65383
authored
Nov 25, 2009
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Fix up the FPU emulation build.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
b9e39c89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
arch/sh/include/asm/fpu.h
arch/sh/include/asm/fpu.h
+1
-0
arch/sh/kernel/process_32.c
arch/sh/kernel/process_32.c
+3
-7
No files found.
arch/sh/include/asm/fpu.h
View file @
6ba65383
...
...
@@ -25,6 +25,7 @@ void fpu_state_restore(struct pt_regs *regs);
#define save_fpu(tsk) do { } while (0)
#define release_fpu(regs) do { } while (0)
#define grab_fpu(regs) do { } while (0)
#define fpu_state_restore(regs) do { } while (0)
#endif
...
...
arch/sh/kernel/process_32.c
View file @
6ba65383
...
...
@@ -300,13 +300,11 @@ __switch_to(struct task_struct *prev, struct task_struct *next)
{
struct
thread_struct
*
next_t
=
&
next
->
thread
;
#if defined(CONFIG_SH_FPU)
unlazy_fpu
(
prev
,
task_pt_regs
(
prev
));
/* we're going to use this soon, after a few expensive things */
if
(
next
->
fpu_counter
>
5
)
prefetch
(
&
next_t
->
fpu
.
hard
);
#endif
#ifdef CONFIG_MMU
/*
...
...
@@ -337,15 +335,13 @@ __switch_to(struct task_struct *prev, struct task_struct *next)
#endif
}
#if defined(CONFIG_SH_FPU)
/
* If the task has used fpu the last 5 timeslices, just do a full
/*
* If the task has used fpu the last 5 timeslices, just do a full
* restore of the math state immediately to avoid the trap; the
* chances of needing FPU soon are obviously high now
*/
if
(
next
->
fpu_counter
>
5
)
{
if
(
next
->
fpu_counter
>
5
)
fpu_state_restore
(
task_pt_regs
(
next
));
}
#endif
return
prev
;
}
...
...
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