mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-27 08:56:00 +00:00
kvm tools, powerpc: Reformatting in find_cpu_info()
Matt's enter key was broken when he wrote this ;) Acked-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
2b5ca5cd3d
commit
ac92dd434f
+4
-2
@@ -75,13 +75,15 @@ static struct pvr_info host_pvr_info[] = {
|
||||
struct cpu_info *find_cpu_info(u32 pvr)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(host_pvr_info); i++) {
|
||||
if ((pvr & host_pvr_info[i].pvr_mask) ==
|
||||
host_pvr_info[i].pvr) {
|
||||
if ((pvr & host_pvr_info[i].pvr_mask) == host_pvr_info[i].pvr) {
|
||||
return host_pvr_info[i].cpu_info;
|
||||
}
|
||||
}
|
||||
|
||||
/* Didn't find anything? Rut-ro. */
|
||||
pr_warning("Host CPU unsupported by kvmtool\n");
|
||||
|
||||
return &cpu_dummy_info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user