Implemented lazy FPU state save/restore. In the end mostly ported from NewOS. SMP safe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
|
||||
#include <smp.h>
|
||||
#include <thread.h>
|
||||
#include <timer.h>
|
||||
#include <boot/kernel_args.h>
|
||||
|
||||
@@ -24,6 +25,9 @@ typedef union cpu_ent {
|
||||
int preempted;
|
||||
timer quantum_timer;
|
||||
|
||||
// tells which thread's fpu state we hold
|
||||
struct thread *fpu_state_thread;
|
||||
|
||||
// keeping track of CPU activity
|
||||
bigtime_t active_time;
|
||||
bigtime_t last_kernel_time;
|
||||
|
||||
Reference in New Issue
Block a user