Removed the broken PROC_EVENT and SYN_ALARM from VFS
This commit is contained in:
parent
8590ac260d
commit
f53377ed67
2 changed files with 5 additions and 3 deletions
|
@ -62,6 +62,8 @@
|
|||
* offset are used for the per-process notification bit maps.
|
||||
*/
|
||||
#define NOTIFY_MESSAGE 0x1000
|
||||
/* FIXME will be is_notify(a) ((a) == NOTIFY_MESSAGE) */
|
||||
#define is_notify(a) ((a) & NOTIFY_MESSAGE)
|
||||
#define NOTIFY_FROM(p_nr) (NOTIFY_MESSAGE | ((p_nr) + NR_TASKS))
|
||||
# define PROC_EVENT NOTIFY_FROM(PM_PROC_NR) /* process status change */
|
||||
# define SYN_ALARM NOTIFY_FROM(CLOCK) /* synchronous alarm */
|
||||
|
|
|
@ -111,13 +111,13 @@ PUBLIC int main(void)
|
|||
}
|
||||
|
||||
/* Check for special control messages first. */
|
||||
if ((call_nr & NOTIFY_MESSAGE)) {
|
||||
if (call_nr == PROC_EVENT && who_e == PM_PROC_NR)
|
||||
if (is_notify(call_nr)) {
|
||||
if (who_p == PM_PROC_NR)
|
||||
{
|
||||
/* PM tries to get FS to do something */
|
||||
service_pm();
|
||||
}
|
||||
else if (call_nr == SYN_ALARM && who_e == CLOCK)
|
||||
else if (who_p == CLOCK)
|
||||
{
|
||||
/* Alarm timer expired. Used only for select().
|
||||
* Check it.
|
||||
|
|
Loading…
Reference in a new issue