svn commit: r260873 - projects/pmac_pmu/sys/powerpc/powermac
Justin Hibbits
jhibbits at FreeBSD.org
Sun Jan 19 00:29:44 UTC 2014
Author: jhibbits
Date: Sun Jan 19 00:29:43 2014
New Revision: 260873
URL: http://svnweb.freebsd.org/changeset/base/260873
Log:
No need to check if devd is running before posting the notification.
Modified:
projects/pmac_pmu/sys/powerpc/powermac/pmu.c
Modified: projects/pmac_pmu/sys/powerpc/powermac/pmu.c
==============================================================================
--- projects/pmac_pmu/sys/powerpc/powermac/pmu.c Sun Jan 19 00:23:59 2014 (r260872)
+++ projects/pmac_pmu/sys/powerpc/powermac/pmu.c Sun Jan 19 00:29:43 2014 (r260873)
@@ -729,13 +729,11 @@ pmu_intr(void *arg)
/* if the lid was just closed, notify devd. */
if ((resp[2] & PMU_ENV_LID_CLOSED) && (!sc->sc_lid_closed)) {
sc->sc_lid_closed = 1;
- if (devctl_process_running())
- devctl_notify("PMU", "lid", "close", NULL);
+ devctl_notify("PMU", "lid", "close", NULL);
}
else if (!(resp[2] & PMU_ENV_LID_CLOSED) && (sc->sc_lid_closed)) {
/* if the lid was just opened, notify devd. */
- if (devctl_process_running())
- devctl_notify("PMU", "lid", "open", NULL);
+ devctl_notify("PMU", "lid", "open", NULL);
sc->sc_lid_closed = 0;
}
}
More information about the svn-src-projects
mailing list