--- zzzz-none-000/linux-3.10.107/arch/mips/bcm63xx/cpu.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/mips/bcm63xx/cpu.c 2021-11-10 11:53:53.000000000 +0000 @@ -115,7 +115,9 @@ static unsigned int detect_cpu_clock(void) { - switch (bcm63xx_get_cpu_id()) { + u16 cpu_id = bcm63xx_get_cpu_id(); + + switch (cpu_id) { case BCM6328_CPU_ID: { unsigned int tmp, mips_pll_fcvo; @@ -238,7 +240,7 @@ } default: - BUG(); + panic("Failed to detect clock for CPU with id=%04d\n", cpu_id); } }