Revision 65
changes
lab3.c | ||
---|---|---|
121 | 121 |
case HARDWARE: /* hardware interrupt notification */ |
122 | 122 |
if (msg.m_notify.interrupts & timer_irq) { /* subscribed interrupt */ |
123 | 123 |
timer_int_handler(); |
124 |
//printf("no_interrupts: %d\n", no_interrupts); |
|
125 | 124 |
if (no_interrupts%frequency == 0) time++; |
126 | 125 |
if(time >= idle) good = 0; |
127 | 126 |
} |
Also available in: Unified diff