diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-05-28 18:16:24 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-06-11 17:01:55 +0100 |
commit | 8ca88fd4d0dcedc6c24658967a55f203ac076fc9 (patch) | |
tree | 9cd0e1aa00b24b46d3718ee7d9cffa04959568df | |
parent | b3a53661af871deeeda00421cc8d5fcb58548488 (diff) |
gator: Prevent BUG() when no device-tree cpu nodes present.tracking-gator-llct-20130613.0
When running on boards without a device-tree or where there are no cpu
nodes in the device-tree then calc_first_cluster_size will call BUG_ON()
because mpidr_cpuids_count == 0.
To enable Gator to be used on these platforms we will delete the
offending BUG() statement. This is 'safe', because mpidr_cpuids is only
used in linearize_mpidr when IKS is running and this will call BUG()
then if mpidr_cpuids is uninitialised.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | drivers/gator/gator_iks.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gator/gator_iks.c b/drivers/gator/gator_iks.c index 6f45c548205..7a67cd67dff 100644 --- a/drivers/gator/gator_iks.c +++ b/drivers/gator/gator_iks.c @@ -39,8 +39,6 @@ static void calc_first_cluster_size(void) mpidr_cpuids[mpidr_cpuids_count] = be32_to_cpup(val); ++mpidr_cpuids_count; } - - BUG_ON(mpidr_cpuids_count != nr_cpu_ids); } static int linearize_mpidr(int mpidr) |