Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe
Commits
f934ca08
Commit
f934ca08
authored
Dec 21, 2015
by
Gilles Chanteperdrix
Committed by
Philippe Gerum
Feb 28, 2016
Browse files
x86/ipipe: add missing masking sections
in FPU handling code
parent
bb5ec819
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/x86/kernel/i387.c
View file @
f934ca08
...
...
@@ -113,7 +113,9 @@ EXPORT_SYMBOL(__kernel_fpu_begin);
void
__kernel_fpu_end
(
void
)
{
struct
task_struct
*
me
=
current
;
unsigned
long
flags
;
flags
=
hard_cond_local_irq_save
();
if
(
__thread_has_fpu
(
me
))
{
if
(
WARN_ON
(
restore_fpu_checking
(
me
)))
fpu_reset_state
(
me
);
...
...
@@ -122,12 +124,15 @@ void __kernel_fpu_end(void)
}
this_cpu_write
(
in_kernel_fpu
,
false
);
hard_cond_local_irq_restore
(
flags
);
}
EXPORT_SYMBOL
(
__kernel_fpu_end
);
void
unlazy_fpu
(
struct
task_struct
*
tsk
)
{
preempt_disable
();
unsigned
long
flags
;
flags
=
hard_preempt_disable
();
if
(
__thread_has_fpu
(
tsk
))
{
if
(
use_eager_fpu
())
{
__save_fpu
(
tsk
);
...
...
@@ -136,7 +141,7 @@ void unlazy_fpu(struct task_struct *tsk)
__thread_fpu_end
(
tsk
);
}
}
preempt_enable
();
hard_
preempt_enable
(
flags
);
}
EXPORT_SYMBOL
(
unlazy_fpu
);
...
...
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