[9610] wlbt: Changed hip4_sampler serialization.
authorAlbert Cano <a.canocamps@samsung.com>
Mon, 24 Sep 2018 08:40:02 +0000 (09:40 +0100)
committerhskang <hs1218.kang@samsung.com>
Wed, 10 Oct 2018 13:01:08 +0000 (22:01 +0900)
commita35ee6f46429b9e7b4d7ee940313462971cac116
tree673da50f7f5651768d3b516b49182b0ef9eb0d3e
parent89fd2a3044c8e555dfaae872d342a4e241b2d10b
[9610] wlbt: Changed hip4_sampler serialization.

Changed hip4_sampler serialization after hitting
a kernel panic when the spinlock logic gets out of
sync. We still don't know the reason behind the
kernel crash and it would require more research as
the issue occurs around spinlock arm64 logic.

Removed the per device node spinlcok and substituted
by a global spinlock.

This patch also includes an optimization in the
tput update function. If the new tput value (rx/tx)
has no changed from previous sample, do not generate
a new one.

Change-Id: I216097037f024e21fa8f4e598874e683ca436d54
SCSC-Bug-Id: SSB-43554
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
drivers/net/wireless/scsc/hip4_sampler.c