Re: [v4 PATCH 6/8] clocksource/drivers/riscv: Add required checks during clock source init
From: Anup Patel
Date: Wed Feb 13 2019 - 01:46:20 EST
On Tue, Feb 12, 2019 at 4:40 PM Atish Patra <atish.patra@xxxxxxx> wrote:
> Currently, clocksource registration happens for an invalid cpu for
> non-smp kernels. This lead to kernel panic as cpu hotplug registration
> will fail for those cpus. Moreover, riscv_hartid_to_cpuid can return
> errors now.
> Do not proceed if hartid or cpuid is invalid. Take this opprtunity to
Otherwise, looks good to me.
Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>