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

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

Merge "msm: smsm_debug: Use smem_find_to_proc()"

parents 10371dbd 525300f5
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -32,8 +32,10 @@ static void debug_read_smsm_state(struct seq_file *s)
	uint32_t *smsm;
	int n;

	smsm = smem_find(SMEM_SMSM_SHARED_STATE,
			 SMSM_NUM_ENTRIES * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMSM_SHARED_STATE,
			 SMSM_NUM_ENTRIES * sizeof(uint32_t),
			 0,
			 SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (n = 0; n < SMSM_NUM_ENTRIES; n++)
@@ -261,8 +263,10 @@ static void debug_read_intr_mask(struct seq_file *s)
	uint32_t *smsm;
	int m, n;

	smsm = smem_find(SMEM_SMSM_CPU_INTR_MASK,
			  SMSM_NUM_ENTRIES * SMSM_NUM_HOSTS * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMSM_CPU_INTR_MASK,
			  SMSM_NUM_ENTRIES * SMSM_NUM_HOSTS * sizeof(uint32_t),
			  0,
			  SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (m = 0; m < SMSM_NUM_ENTRIES; m++) {
@@ -279,8 +283,10 @@ static void debug_read_intr_mux(struct seq_file *s)
	uint32_t *smsm;
	int n;

	smsm = smem_find(SMEM_SMD_SMSM_INTR_MUX,
			  SMSM_NUM_INTR_MUX * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMD_SMSM_INTR_MUX,
			  SMSM_NUM_INTR_MUX * sizeof(uint32_t),
			  0,
			  SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (n = 0; n < SMSM_NUM_INTR_MUX; n++)