From: Antoine Leca Date: Wed, 3 Apr 2013 13:21:37 +0000 (+0200) Subject: PM: remove obsolete sys_getkinfo() X-Git-Tag: v3.3.0~862 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F705%2F2;p=minix.git PM: remove obsolete sys_getkinfo() --- diff --git a/servers/pm/glo.h b/servers/pm/glo.h index ef483e450..a27079b82 100644 --- a/servers/pm/glo.h +++ b/servers/pm/glo.h @@ -8,7 +8,6 @@ EXTERN struct mproc *mp; /* ptr to 'mproc' slot of current process */ EXTERN int procs_in_use; /* how many processes are marked as IN_USE */ EXTERN char monitor_params[MULTIBOOT_PARAM_BUF_SIZE]; -EXTERN struct kinfo kinfo; /* kernel information */ /* Misc.c */ extern struct utsname uts_val; /* uname info */ diff --git a/servers/pm/main.c b/servers/pm/main.c index d3c50f2d5..6957ff895 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -213,14 +213,10 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)) for (sig_ptr = noign_sigs; sig_ptr < noign_sigs+sizeof(noign_sigs); sig_ptr++) sigaddset(&noign_sset, *sig_ptr); - /* Obtain a copy of the boot monitor parameters and the kernel info struct. - * Parse the list of free memory chunks. This list is what the boot monitor - * reported, but it must be corrected for the kernel and system processes. + /* Obtain a copy of the boot monitor parameters. */ if ((s=sys_getmonparams(monitor_params, sizeof(monitor_params))) != OK) panic("get monitor params failed: %d", s); - if ((s=sys_getkinfo(&kinfo)) != OK) - panic("get kernel info failed: %d", s); /* Initialize PM's process table. Request a copy of the system image table * that is defined at the kernel level to see which slots to fill in.