Module Name:    src
Committed By:   martin
Date:           Mon Dec 16 11:52:43 UTC 2024

Modified Files:
        src/sys/arch/ofppc/ofppc: machdep.c

Log Message:
PR 58909: call model_init() always, even if we could not fetch a "model"
or "name" property.


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/sys/arch/ofppc/ofppc/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ofppc/ofppc/machdep.c
diff -u src/sys/arch/ofppc/ofppc/machdep.c:1.120 src/sys/arch/ofppc/ofppc/machdep.c:1.121
--- src/sys/arch/ofppc/ofppc/machdep.c:1.120	Tue Mar  5 14:15:34 2024
+++ src/sys/arch/ofppc/ofppc/machdep.c	Mon Dec 16 11:52:43 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.120 2024/03/05 14:15:34 thorpej Exp $	*/
+/*	$NetBSD: machdep.c,v 1.121 2024/12/16 11:52:43 martin Exp $	*/
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.120 2024/03/05 14:15:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.121 2024/12/16 11:52:43 martin Exp $");
 
 #include "opt_ofwoea.h"
 
@@ -136,9 +136,9 @@ initppc(u_int startkernel, u_int endkern
 		if (i == -1) {
 			OF_getprop(node, "name", model_name,
 			    sizeof(model_name));
-			model_init();
 		}
 	}
+	model_init();
 
 	if ((oeacpufeat & OEACPU_NOBAT) == 0) {
 		node = OF_finddevice("/");

Reply via email to