Explorar el Código

disp: msm: use platform independent API for cpu number

Use platform independent API for cpu number which
compiles on both 32 and 64 bit machine.

Change-Id: I539de278776623a84067460569a2b99676a2ba4e
Signed-off-by: Ravikanth Tuniki <[email protected]>
Ravikanth Tuniki hace 5 años
padre
commit
08a2bea751
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      msm/sde_dbg_evtlog.c

+ 2 - 2
msm/sde_dbg_evtlog.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
  */
 
 #define pr_fmt(fmt)	"sde_dbg:[%s] " fmt, __func__
@@ -80,7 +80,7 @@ void sde_evtlog_log(struct sde_dbg_evtlog *evtlog, const char *name, int line,
 	log->line = line;
 	log->data_cnt = 0;
 	log->pid = current->pid;
-	log->cpu = current->cpu;
+	log->cpu = raw_smp_processor_id();
 
 	va_start(args, flag);
 	for (i = 0; i < SDE_EVTLOG_MAX_DATA; i++) {