lkml.org 
[lkml]   [1996]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsigned int for interrupts??
This was a disappointment.  I was looking forward to seeing my Cyclades
interrupt count wrap at 2^32 and start counting up again...but just
noticed that procinfo was reporting it to be stuck at (2^31)-1. Looking
into /proc revealed this:

endor:~# cat /proc/interrupts
0: 340944036 timer
1: 538 keyboard
2: 0 cascade
5: 1649726484 + cyclades
9: 12023652 53c8xx
10: 231379880 3c509
11: -2104643917 + cyclades
13: 1 math error

Since a device can't really have a negative interrupt count (can it?),
shouldn't these be unsigned ints? Irq 11 is now counting up from -(2^31).
I guess Irq 11 will still hit 0 in about a month. I just didn't expect it
to approach from that side.

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/hr.
________Finger jlewis@inorganic5.fdt.net for PGP public key_______


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.109 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site