From: Mike Marciniszyn Date: Fri, 7 Mar 2014 13:40:49 +0000 (-0500) Subject: IB/qib: Add percpu counter replacing qib_devdata int_counter X-Git-Tag: v3.15-rc1~103^2^9~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ed88dd7d0b361e677b2690f573e5c274bb25c87;p=pandora-kernel.git IB/qib: Add percpu counter replacing qib_devdata int_counter This patch replaces the dd->int_counter with a percpu counter. The maintanance of qib_stats.sps_ints and int_counter are combined into the new counter. There are two new functions added to read the counter: - qib_int_counter (for a particular qib_devdata) - qib_sps_ints (for all HCAs) A z_int_counter is added to allow the interrupt detection logic to determine if interrupts have occured since z_int_counter was "reset". Reviewed-by: Dennis Dalessandro Signed-off-by: Mike Marciniszyn Signed-off-by: Roland Dreier --- Reading git-diff-tree failed