Merge "soc: qcom: smp2p: Fix simultaneous access of global loopback data"
This commit is contained in:
commit
17f988f036
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue