projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
introduce TEMPLATE_emitf
[libfirm]
/
ir
/
stat
/
stat_timing.c
diff --git
a/ir/stat/stat_timing.c
b/ir/stat/stat_timing.c
index
6fb5032
..
bf0f93e
100644
(file)
--- a/
ir/stat/stat_timing.c
+++ b/
ir/stat/stat_timing.c
@@
-21,7
+21,6
@@
* @file
* @brief OS abstraction from time measurement
* @author Sebastian Hack, Michael Beck, Matthias Braun
* @file
* @brief OS abstraction from time measurement
* @author Sebastian Hack, Michael Beck, Matthias Braun
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-79,7
+78,8
@@
void timing_enter_max_prio(void)
if (res < 0)
return;
new_scheduler = SCHED_FIFO;
if (res < 0)
return;
new_scheduler = SCHED_FIFO;
- sched_params.sched_priority = sched_get_priority_max(new_scheduler);
+ new_sched_params = sched_params;
+ new_sched_params.sched_priority = sched_get_priority_max(new_scheduler);
sched_setscheduler(0, new_scheduler, &new_sched_params);
if (res < 0)
return;
sched_setscheduler(0, new_scheduler, &new_sched_params);
if (res < 0)
return;