aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/selftest.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-12-08 19:51:47 +0000
committerBen Hutchings <bhutchings@solarflare.com>2012-01-27 00:10:50 +0000
commitcc180b69c009ec52f67a56d96b9073b9f774b323 (patch)
tree2d20225099a9a08d3471aeb3cd8ce4295417e5e6 /drivers/net/ethernet/sfc/selftest.h
parentsfc: Support extraction of CAPABILITIES from GET_BOARD_CFG response. (diff)
downloadlinux-dev-cc180b69c009ec52f67a56d96b9073b9f774b323.tar.xz
linux-dev-cc180b69c009ec52f67a56d96b9073b9f774b323.zip
sfc: Correct interrupt timer quantum for Siena (normal and turbo mode)
We currently assume that the timer quantum for Siena is 5 us, the same as for Falcon. This is not correct; timer ticks are generated on a rota which takes a minimum of 768 cycles (each event delivery or other timer change will delay it by 3 cycles). The timer quantum should be 6.144 or 3.072 us depending on whether turbo mode is active. Replace EFX_IRQ_MOD_RESOLUTION with a timer_quantum_ns field in struct efx_nic, initialised by the efx_nic_type::probe function. While we're at it, replace EFX_IRQ_MOD_MAX with a timer_period_max field in struct efx_nic_type. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.h')
0 files changed, 0 insertions, 0 deletions