From 1f8ff56f95e6565852a1802e5d04796b84fb7a7d Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 15 Oct 2008 14:05:40 +0000 Subject: [PATCH] fix interrupt nested behavior git-svn-id: http://ltt.polymtl.ca/svn@3106 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/lttv/lttv/modules/gui/interrupts/interrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/lttv/lttv/modules/gui/interrupts/interrupts.c b/trunk/lttv/lttv/modules/gui/interrupts/interrupts.c index 6d0f07e3..608e2b27 100644 --- a/trunk/lttv/lttv/modules/gui/interrupts/interrupts.c +++ b/trunk/lttv/lttv/modules/gui/interrupts/interrupts.c @@ -583,7 +583,7 @@ static void CalculateData(LttTime time_exit, guint cpu_id,InterruptEventData *e LttTime duration; GArray *FirstRequestIrqExit = event_data->FirstRequestIrqExit; GArray *FirstRequestIrqEntry = event_data->FirstRequestIrqEntry; - for(i = 0; i < FirstRequestIrqEntry->len; i++) + for(i = FirstRequestIrqEntry->len-1; i >=0; i--) { element = &g_array_index(FirstRequestIrqEntry,irq_entry,i); if(element->cpu_id == cpu_id) -- 2.34.1