cleanup: sys_irqrmpolicy does not need IRQ vector

This commit is contained in:
David van Moolenbroek 2009-09-06 14:24:44 +00:00
parent 9b417d616f
commit 8ef6c9b063
2 changed files with 3 additions and 3 deletions

View file

@ -602,7 +602,7 @@ PRIVATE void msg_sig_stop(void)
error("Msg SIG_STOP Couldn't get IRQ");
}
/* remove the policy */
if (sys_irqrmpolicy(irq, &irq_hook_id) != OK) {
if (sys_irqrmpolicy(&irq_hook_id) != OK) {
error("%s: Could not disable IRQ\n",drv.DriverName);
}
}

View file

@ -102,8 +102,8 @@ _PROTOTYPE( int sys_vtimer, (endpoint_t proc_nr, int which, clock_t *newval,
sys_irqctl(IRQ_ENABLE, 0, 0, hook_id)
#define sys_irqsetpolicy(irq_vec, policy, hook_id) \
sys_irqctl(IRQ_SETPOLICY, irq_vec, policy, hook_id)
#define sys_irqrmpolicy(irq_vec, hook_id) \
sys_irqctl(IRQ_RMPOLICY, irq_vec, 0, hook_id)
#define sys_irqrmpolicy(hook_id) \
sys_irqctl(IRQ_RMPOLICY, 0, 0, hook_id)
_PROTOTYPE ( int sys_irqctl, (int request, int irq_vec, int policy,
int *irq_hook_id) );