soc: samsung: remove acpm_get_inform
authorTim Zimmermann <tim@linux4.de>
Mon, 22 Nov 2021 20:52:07 +0000 (21:52 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:03 +0000 (20:24 +0300)
* When built with CC_OPTIMIZE_FOR_PERFORMANCE this causes kernel panics
* These values aren't actually getting set anywhere anyways so let's just remove it

Change-Id: If0332377a1814dce9fed39e39ed4044c8465cda3

drivers/soc/samsung/acpm/acpm_ipc.c
drivers/soc/samsung/acpm/fw_header/framework.h
drivers/soc/samsung/exynos-pm.c

index e2d0239cb998b27d0f79411d25060026ee55a0e8..c7efc976e31f999eb0838faefc601efa7a28e5fc 100644 (file)
@@ -55,35 +55,6 @@ u32 acpm_get_mifdn_count(void)
        return acpm_initdata->mifdn_count;
 }
 
-void acpm_get_inform(void)
-{
-       int i;
-       u32 user;
-       u32 time, start, end;
-       u32 hour, min, sec;
-
-       for (i = 0; i < 6; i++) {
-               user = acpm_initdata->inform0[i];
-               time = acpm_initdata->inform1[i];
-               start = acpm_initdata->inform2[i];
-               end = acpm_initdata->inform3[i];
-               hour = ((time & (0xff << 24)) >> 24) & 0x3f;
-               min = ((time & (0xff << 16)) >> 16) & 0x7f;
-               sec = ((time & (0xff << 8)) >> 8) & 0x7f;
-               if (user)
-                       pr_info("\t%s: mifuser: 0x%x, time: %d:%d:%d, latency: %d[usec]\n",
-                                       "EXYNOS-PM", user, hour, min, sec, (start - end) * 41 / 1000);
-       }
-
-       for (i = 0; i < 6; i++) {
-               acpm_initdata->inform_head = 0;
-               acpm_initdata->inform0[i] = 0;
-               acpm_initdata->inform1[i] = 0;
-               acpm_initdata->inform2[i] = 0;
-               acpm_initdata->inform3[i] = 0;
-       }
-}
-
 void acpm_ramdump(void)
 {
 #ifdef CONFIG_DEBUG_SNAPSHOT_ACPM
index 3dd599b2465971dbc5b8d10268625d21f16f3a10..a7a44dad65a5d45e978f86b009c098386e870f72 100644 (file)
@@ -70,11 +70,6 @@ struct acpm_framework {
        struct build_info info;
        u32 regulator_id;
        u32 mifdn_count;
-       u32 inform_head;
-       u32 inform0[6];
-       u32 inform1[6];
-       u32 inform2[6];
-       u32 inform3[6];
 };
 
 /**
index 658fe67ef5530488d4ab738834925c31effe40ae..fa1b58bb97b4d522c8c759ff99cf60e1947ec982 100644 (file)
@@ -396,9 +396,6 @@ static int exynos_pm_enter(suspend_state_t state)
                                EXYNOS_PM_PREFIX, post_mif - prev_mif, post_mif);
        }
 
-       pr_info("%s: MIF_UP history: \n", EXYNOS_PM_PREFIX);
-       acpm_get_inform();
-
        return pm_info->is_early_wakeup;
 }