Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d205565 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

rmnet: initialize rmnet pid ht spinlock



Initializes the rmnet ht spinlock to avoid a watchdog bite when
spinlock debugging is enabled. Fixes the following:
3.062142:   <6> spinlock bad magic on CPU#5
3.062154:   <6>  lock: rmnet_pid_ht_splock+0x0/0x18, .magic: 00000000
3.062156:   <4> Causing a watchdog bite.

Change-Id: I2e87b08bf00ba1b77445b2164db58da9ab6d559b
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent d66d368d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -48,7 +48,9 @@ struct genl_family rmnet_core_genl_family = {
#define RMNET_PID_STATS_HT_SIZE (8)
#define RMNET_PID_STATS_HT rmnet_pid_ht
DEFINE_HASHTABLE(rmnet_pid_ht, RMNET_PID_STATS_HT_SIZE);
spinlock_t rmnet_pid_ht_splock; /* Spinlock definition for pid hash table */

/* Spinlock definition for pid hash table */
static DEFINE_SPINLOCK(rmnet_pid_ht_splock);

#define RMNET_GENL_SEC_TO_MSEC(x)   ((x) * 1000)
#define RMNET_GENL_SEC_TO_NSEC(x)   ((x) * 1000000000)