[COMMON] bcm: panic log size increase
authorSeokju Yoon <sukju.yoon@samsung.com>
Thu, 18 Aug 2016 10:10:23 +0000 (19:10 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:48 +0000 (14:42 +0900)
Change-Id: Ie387592a4bc88a859a91633e2b8fcfdedf1de344
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
drivers/soc/samsung/exynos-bcm.c

index 2a90d41b35c968bdf73a54850b0110e2979e9da3..ac1b479130c3fa94aae926bb7b919b381d97d7b7 100644 (file)
@@ -37,7 +37,7 @@
 #define BCM_SIZE                       SZ_64K
 #define NUM_CLK_MAX            8
 #define FILE_STR               32
-#define BCM_LOG_CNT            100
+#define BCM_LOG_CNT            200
 
 enum outform {
        OUT_FILE = 1,
@@ -227,21 +227,9 @@ EXPORT_SYMBOL(bcm_start);
 static int bcm_log(void)
 {
        unsigned long flags;
-       char *str;
-       int err;
-       str = kzalloc(sizeof(char) * MAX_STR, GFP_KERNEL);
-       if (!str) {
-               err = -ENOMEM;
-               return err;
-       }
        spin_lock_irqsave(&bcm_lock, flags);
-       while (fw_func->fw_getresult(str)) {
-               spin_unlock_irqrestore(&bcm_lock, flags);
-               pr_info("%s", str);
-               spin_lock_irqsave(&bcm_lock, flags);
-       }
+       while (fw_func->fw_getresult(NULL));
        spin_unlock_irqrestore(&bcm_lock, flags);
-       kfree(str);
        return 0;
 }
 
@@ -609,12 +597,7 @@ static int exynos_bcm_notify_panic(struct notifier_block *nb,
 {
        if (fw_func) {
                unsigned long flags;
-               char *str;
                int cnt = 0;
-               str = kzalloc(sizeof(char) * MAX_STR, GFP_KERNEL);
-               if (!str) {
-                       return NOTIFY_DONE;
-               }
                spin_lock_irqsave(&bcm_lock, flags);
                if (!fw_func) {
                        spin_unlock_irqrestore(&bcm_lock, flags);
@@ -622,11 +605,8 @@ static int exynos_bcm_notify_panic(struct notifier_block *nb,
                }
                fw_func->fw_stop(get_time(),
                                 cal_dfs_cached_get_rate, NULL);
-               while (cnt++ < BCM_LOG_CNT && fw_func->fw_getresult(str)) {
-                       pr_info("%s", str);
-               }
+               while (cnt++ < BCM_LOG_CNT && fw_func->fw_getresult(NULL));
                spin_unlock_irqrestore(&bcm_lock, flags);
-               kfree(str);
        }
 
        return NOTIFY_DONE;