Removed the extra info struct in the cpu_ent union and made said union a struct instead. Same as r1137 in NewOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17273 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,21 +16,19 @@
|
||||
|
||||
/* CPU local data structure */
|
||||
|
||||
typedef union cpu_ent {
|
||||
struct {
|
||||
int cpu_num;
|
||||
typedef struct cpu_ent {
|
||||
int cpu_num;
|
||||
|
||||
// thread.c: used to force a reschedule at quantum expiration time
|
||||
int preempted;
|
||||
timer quantum_timer;
|
||||
// thread.c: used to force a reschedule at quantum expiration time
|
||||
int preempted;
|
||||
timer quantum_timer;
|
||||
|
||||
// keeping track of CPU activity
|
||||
bigtime_t active_time;
|
||||
bigtime_t last_kernel_time;
|
||||
bigtime_t last_user_time;
|
||||
// keeping track of CPU activity
|
||||
bigtime_t active_time;
|
||||
bigtime_t last_kernel_time;
|
||||
bigtime_t last_user_time;
|
||||
|
||||
bool disabled;
|
||||
} info;
|
||||
bool disabled;
|
||||
} cpu_ent __attribute__((aligned(64)));
|
||||
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ struct thread {
|
||||
int32 next_priority;
|
||||
int32 state;
|
||||
int32 next_state;
|
||||
union cpu_ent *cpu;
|
||||
struct cpu_ent *cpu;
|
||||
|
||||
sigset_t sig_pending;
|
||||
sigset_t sig_block_mask;
|
||||
|
||||
Reference in New Issue
Block a user