summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/timerfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/timerfd.c')
-rw-r--r--usr/src/uts/common/io/timerfd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/timerfd.c b/usr/src/uts/common/io/timerfd.c
index 65c7d6b30b..29eea9b24a 100644
--- a/usr/src/uts/common/io/timerfd.c
+++ b/usr/src/uts/common/io/timerfd.c
@@ -431,10 +431,20 @@ timerfd_close(dev_t dev, int flag, int otyp, cred_t *cred_p)
return (0);
}
-/*ARGSUSED*/
static int
timerfd_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
{
+ switch (cmd) {
+ case DDI_ATTACH:
+ break;
+
+ case DDI_RESUME:
+ return (DDI_SUCCESS);
+
+ default:
+ return (DDI_FAILURE);
+ }
+
mutex_enter(&timerfd_lock);
if (ddi_soft_state_init(&timerfd_softstate,