2003-08-09 Peter Bruin * procstat.c [POLICY_TIMESHARE]: (thread_state): Take extra argument PI. Use it to set nasty and nice flags. (summarize_thread_state): Pass extra argument to thread_state. (proc_stat_set_flags): Likewise. (summarize_thread_basic_info): Don't calculate thread priorities. (summarize_thread_policy_info): New function, to be used instead of summarize_thread_sched_info. (set_procinfo_flags): Get thread_policy_info instead of thread_sched_info. (_proc_stat_free): Free thread_policy_info instead of thread_sched_info. * ps.h [POLICY_TIMESHARE]: (struct proc_stat): Add member thread_policy_info instead of thread_sched_info. (proc_stat_thread_policy_info): New macro, to be used instead of proc_stat_thread_sched_info. * spec.c [POLICY_TIMESHARE]: (ps_state_getter): Get PSTAT_THREAD_SCHED in addition to PSTAT_STATE. (ps_get_cur_priority): Get priority from policy info instead of basic info. (ps_get_base_priority): Likewise. (ps_get_max_priority): Likewise. (ps_cur_priority_getter): Get PSTAT_THREAD_SCHED instead of PSTAT_THREAD_BASIC. (ps_base_priority_getter): Likewise. (ps_max_priority_getter): Likewise. * spec.c [NO_CREATION_TIME]: (ps_get_start_time): Get creation time from procinfo instead of task_basic_info. (ps_start_time_getter): Get PSTAT_PROC_INFO instead of PSTAT_TASK_BASIC.