libsys: unbreak getidle()

This commit is contained in:
David van Moolenbroek 2011-12-16 16:06:09 +00:00
parent eccb2d685c
commit 84662ec4b3
2 changed files with 4 additions and 2 deletions

View file

@ -19,6 +19,9 @@
#include <minix/u64.h>
/*===========================================================================*
* update_idle_time *
*===========================================================================*/
PRIVATE void update_idle_time(void)
{
int i;
@ -180,7 +183,7 @@ PUBLIC int do_getinfo(struct proc * caller, message * m_ptr)
}
case GET_IDLETSC: {
struct proc * idl;
update_idle_time();
idl = proc_addr(IDLE);
length = sizeof(idl->p_cycles);
src_vir = (vir_bytes) &idl->p_cycles;

View file

@ -11,7 +11,6 @@
*
* Notes:
* - This functionality can only be used by system processes.
* - The kernel has to be compiled with CONFIG_IDLE_TSC support.
* - Only one getidle() run is allowed per process at a time.
*
*/