• Finn Thain's avatar
    macintosh/via-pmu: Disambiguate interrupt statistics · 6edc22fc
    Finn Thain authored
    Some of the event counters are overloaded which makes it very
    difficult to interpret their values.
    
    Counter 0 is supposed to report CB1 interrupts but it can also count
    PMU_INT_WAITING_CHARGER events.
    
    Counter 1 is supposed to report GPIO interrupts but it can also count
    other events (depending upon the value of the PMU_INT_ADB bit).
    
    Disambiguate these statistics with dedicated counters for GPIO and
    CB1 interrupts.
    
    Comments in the MkLinux source code say that the type 0 and type 1
    interrupts are model-specific. Label them as "unknown".
    
    This change to the contents of /proc/pmu/interrupts is by necessity
    visible in userland. However, packages which interact with the PMU
    (that is, pbbuttonsd, pmac-utils and pmud) don't open this file.
    AFAIK, user software has no need to poll these counters.
    Tested-by: default avatarStan Johnson <userm57@yahoo.com>
    Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
    Signed-off-by: Michael Ellerman's avatarMichael Ellerman <mpe@ellerman.id.au>
    6edc22fc
Name
Last commit
Last update
..
ams Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
adb-iop.c Loading commit data...
adb.c Loading commit data...
adbhid.c Loading commit data...
ans-lcd.c Loading commit data...
ans-lcd.h Loading commit data...
apm_emu.c Loading commit data...
mac_hid.c Loading commit data...
macio-adb.c Loading commit data...
macio_asic.c Loading commit data...
macio_sysfs.c Loading commit data...
mediabay.c Loading commit data...
rack-meter.c Loading commit data...
smu.c Loading commit data...
therm_adt746x.c Loading commit data...
therm_windtunnel.c Loading commit data...
via-cuda.c Loading commit data...
via-macii.c Loading commit data...
via-pmu-backlight.c Loading commit data...
via-pmu-event.c Loading commit data...
via-pmu-event.h Loading commit data...
via-pmu-led.c Loading commit data...
via-pmu.c Loading commit data...
windfarm.h Loading commit data...
windfarm_ad7417_sensor.c Loading commit data...
windfarm_core.c Loading commit data...
windfarm_cpufreq_clamp.c Loading commit data...
windfarm_fcu_controls.c Loading commit data...
windfarm_lm75_sensor.c Loading commit data...
windfarm_lm87_sensor.c Loading commit data...
windfarm_max6690_sensor.c Loading commit data...
windfarm_mpu.h Loading commit data...
windfarm_pid.c Loading commit data...
windfarm_pid.h Loading commit data...
windfarm_pm112.c Loading commit data...
windfarm_pm121.c Loading commit data...
windfarm_pm72.c Loading commit data...
windfarm_pm81.c Loading commit data...
windfarm_pm91.c Loading commit data...
windfarm_rm31.c Loading commit data...
windfarm_smu_controls.c Loading commit data...
windfarm_smu_sat.c Loading commit data...
windfarm_smu_sensors.c Loading commit data...