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

Commit b1c61623 authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: smp2p: spinlock_test: Initialize work item



Initialize the has_locked member before running SSR
spinlock test to ensure consistent results.

CRs-Fixed: 2091946
Change-Id: Ifad37541a94668b496aa9204dc80920b9a7ff244
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 67c751e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* drivers/soc/qcom/smp2p_spinlock_test.c
 *
 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2015, 2017 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -516,7 +516,7 @@ static void smp2p_ut_remote_spinlock_ssr(struct seq_file *s)
	int spinlock_owner = 0;

	struct workqueue_struct *ws = NULL;
	struct rmt_spinlock_work_item work_item;
	struct rmt_spinlock_work_item work_item = { .has_locked = false };

	seq_printf(s, " Running %s Test\n",
		   __func__);