proc_interrupt: Fix number of observed interrupts

fgets() truncates lines in /proc/interrupts that exceed 4095 characters
causing an incorrect number of observed interrupts.

Fix number of observed interrupts by replacing fgets() with getline(),
which dynamically allocates enough memory for the entire line.

Signed-off-by: Kyle Meyer <kyle.meyer@hpe.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
1 file changed