[9610] wlbt: Changed hip4_sampler serialization.
authorAlbert Cano <a.canocamps@samsung.com>
Mon, 24 Sep 2018 08:40:02 +0000 (09:40 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:05 +0000 (20:23 +0300)
commit9bee31c7645c4993360d2b887fecc0c058f201e0
treecec052be6ea514894e498e4bdb084d968ba464bc
parent2b57432bcd2a800aa7c9737494ced9e6dd2b4bc4
[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