From owner-freebsd-current Mon Sep 4 7:22:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 6F83537B422 for ; Mon, 4 Sep 2000 07:22:54 -0700 (PDT) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) by tasogare.imasy.or.jp (8.10.2+3.3W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id e84EMpr19578 for ; Mon, 4 Sep 2000 23:22:51 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) To: freebsd-current@freebsd.org Subject: CFR: New pseudo timer device driver for power management events X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000904232226G.iwasaki@jp.FreeBSD.org> Date: Mon, 04 Sep 2000 23:22:26 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 26 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm working on ACPI and thinking of sharing the related code with other power management subsystem (currently apm) rather than having duplicated code. Updating timer/clock before and after sleeping, is my first target. My idea is that create new pseudo timer device driver for power management events in i386/isa/pmtimer.c which should be statically wired and always only one instance, then move apm_default_{suspend|resume} in i386/apm/apm.c into pmtimer as device_{suspend|resume} method. Firstly I thought that this should be moved to i386/isa/clock.c and define device_{suspend|resume} method of attimer. But I noticed that it's for PnP and we cannot guarantee that there is always only one device instance and device_{suspend|resume} is executed once per event. I put the code and diffs at http://people.freebsd.org/~iwasaki/acpi/pmtimer.c http://people.freebsd.org/~iwasaki/acpi/pmtimer.diff Please review them, I'll commit this change this weekend. Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message