projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unused variables.
[libfirm]
/
ir
/
stat
/
stat_timing.c
diff --git
a/ir/stat/stat_timing.c
b/ir/stat/stat_timing.c
index
6fb5032
..
b80ed71
100644
(file)
--- a/
ir/stat/stat_timing.c
+++ b/
ir/stat/stat_timing.c
@@
-79,7
+79,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;