IB/hfi1: Improve LED beaconing
authorEaswar Hariharan <easwar.hariharan@intel.com>
Mon, 7 Mar 2016 19:35:03 +0000 (11:35 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Mar 2016 19:55:18 +0000 (15:55 -0400)
commit2243472e9d98c3ca0cb735f96ad48a7b59bdb34d
tree2c18012d1b1974701d282e8c8f3126f912e8308f
parent831464ce4b74eaec723bad51ea48fe3879732f66
IB/hfi1: Improve LED beaconing

The current LED beaconing code is unclear and uses the timer handler to
turn off the timer. This patch simplifies the code by removing the
special semantics of timeon = timeoff = 0 being interpreted as a request
to turn off the beaconing.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/driver.c
drivers/staging/rdma/hfi1/hfi.h
drivers/staging/rdma/hfi1/mad.c