The branch stable/14 has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e6a2ee4072071f9a76996d08525c4fb3db04ba31

commit e6a2ee4072071f9a76996d08525c4fb3db04ba31
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2024-10-08 18:49:11 +0000
Commit:     Mitchell Horne <[email protected]>
CommitDate: 2026-08-25 17:44:42 +0000

    cpufreq_dt: fix attach for single CPU
    
    The 'opp-shared' property is required, but has no meaning for a
    single-processor system, and is thus not present in such device trees as
    the BeagleBone Black. Expand the check so we do not fail attachment in
    this case.
    
    This is a partial cherry-pick from the original commit. Intended for
    merge into releng/14.5.
    
    PR:             297788
    Reported by:    Rick Richard <[email protected]>
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D48124
    
    (cherry picked from commit def7999c2ccddc9a303a65c0bea22976e79d8613)
---
 sys/dev/cpufreq/cpufreq_dt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c
index be434cabb4fd..e406836d2e6c 100644
--- a/sys/dev/cpufreq/cpufreq_dt.c
+++ b/sys/dev/cpufreq/cpufreq_dt.c
@@ -402,7 +402,7 @@ cpufreq_dt_oppv2_parse(struct cpufreq_dt_softc *sc, 
phandle_t node)
        if (opp_table == opp_xref)
                return (ENXIO);
 
-       if (!OF_hasprop(opp_table, "opp-shared")) {
+       if (!OF_hasprop(opp_table, "opp-shared") && mp_ncpus > 1) {
                device_printf(sc->dev, "Only opp-shared is supported\n");
                return (ENXIO);
        }

Reply via email to