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

Commit 17f988f0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: smp2p: Fix simultaneous access of global loopback data"

parents 20dfa6c9 b0930c59
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
/* drivers/soc/qcom/smp2p_test.c
 *
 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-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
@@ -17,6 +17,7 @@
#include <linux/delay.h>
#include <linux/completion.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <soc/qcom/subsystem_restart.h>
#include "smp2p_private.h"
#include "smp2p_test_common.h"
@@ -1239,12 +1240,15 @@ static void smp2p_ut_remote_ssr_ack(struct seq_file *s)
}

static struct dentry *dent;
static DEFINE_MUTEX(show_lock);

static int debugfs_show(struct seq_file *s, void *data)
{
	void (*show)(struct seq_file *) = s->private;

	mutex_lock(&show_lock);
	show(s);
	mutex_unlock(&show_lock);

	return 0;
}