Few changes...
- catch up with the changes to the interrupt functions - change the way we handle the list of handlers to use a standard function rather than a home spun one :) - don't add every function on a pci device as a seperate device - add more info to the pci_info structure - when FULL_MONTY turned on show more information git-svn-id: file:///srv/svn/repos/haiku/trunk/current@340 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -57,7 +57,7 @@ int timer_interrupt()
|
||||
struct timer_event *event;
|
||||
spinlock_t *spinlock;
|
||||
int curr_cpu = smp_get_current_cpu();
|
||||
int rc = INT_NO_RESCHEDULE;
|
||||
int rc = B_HANDLED_INTERRUPT;
|
||||
|
||||
// dprintf("timer_interrupt: time 0x%x 0x%x, cpu %d\n", system_time(), smp_get_current_cpu());
|
||||
|
||||
@@ -80,8 +80,9 @@ restart_scan:
|
||||
// note: if the event is not periodic, it is ok
|
||||
// to delete the event structure inside the callback
|
||||
if(event->func != NULL) {
|
||||
if(event->func(event->data) == INT_RESCHEDULE)
|
||||
rc = INT_RESCHEDULE;
|
||||
rc = event->func(event->data);
|
||||
// if (event->func(event->data) == INT_RESCHEDULE)
|
||||
// rc = INT_RESCHEDULE;
|
||||
}
|
||||
|
||||
acquire_spinlock(spinlock);
|
||||
|
||||
Reference in New Issue
Block a user