Date: Sun, 19 Jan 2014 00:29:43 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r260873 - projects/pmac_pmu/sys/powerpc/powermac Message-ID: <201401190029.s0J0ThHg018723@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401190029.s0J0ThHg018723>