git: kernel/apple_smc: Table-drive sysctl registration and collapse duplicate handlers.

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 27 23:00:55 PDT 2026


commit e75e2fdb61e5405f134efc746b2842a35e8cdc93
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Mon Jun 22 00:42:50 2026 +0000

    kernel/apple_smc: Table-drive sysctl registration and collapse duplicate handlers.
    
    Replace fanminspeed/fanmaxspeed/fantargetspeed with single fanrw handler
    using key index packed in arg2 bits [15:8].  Collapse sms_x/y/z, light
    left/right, and mssd/mssp wrappers into table-indexed handlers.  Table-drive
    per-fan and system-state sysctl registration loops.

Summary of changes:
 sys/dev/apple/smc/smc.c        | 239 ++++++++++++++++++++++-------------------
 sys/dev/apple/smc/smc.h        |  14 +--
 sys/dev/apple/smc/smc_sysctl.c | 132 +++++++++--------------
 3 files changed, 185 insertions(+), 200 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e75e2fdb61e5405f134efc746b2842a35e8cdc93


-- 
DragonFly BSD source repository


More information about the Commits mailing list