Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1690620
| From | "dbasehore ." <dbasehore@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 2/5] tick: Add freeze timer events |
| Date | 2017-07-18 22:10 +0200 |
| Message-ID | <u4GYF-6V8-13@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <u3uGe-1wv-21@gated-at.bofh.it> <u4oIp-3GY-5@gated-at.bofh.it> <u4pEu-4kz-9@gated-at.bofh.it> <u4rPX-5G1-5@gated-at.bofh.it> <u4uuu-7ol-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jul 17, 2017 at 11:40 PM, Thomas Gleixner <tglx@linutronix.de> wrote: > On Mon, 17 Jul 2017, dbasehore . wrote: >> On Mon, Jul 17, 2017 at 6:33 PM, Rafael J. Wysocki <rafael@kernel.org> wrote: >> I could make a patch to try it out. I would probably add a flag to rtc >> timers to indicate whether it wakes the system (default true). We >> would have to add a sync with the rtc irq and the rtc irqwork. I would >> probably add a rtc_timer_sync function that would flush the rtc irq >> and flush the irqwork. I would call this after the freeze_ops sync >> function since the sci irq needs to finish before syncing with the rtc >> irq. Also, pm_wakeup_irq seems racy with the current implementation of >> s2idle_loop since the RTC irq could be mistakenly set as pm_wakeup_irq >> when something else actually triggered the full wakeup. Fortunately, I >> don't think pm_wakeup_irq is used for anything except debugging, but >> we might change that. > > There is another option which you might consider. We can reserve one of the > HPET comparators for that purpose and have a special interrupt handler for > it. Checking the HPET for expiry from the low level code should be trivial. > Does that handle setting up new timers properly or does the timer sync code still need to be written? > Thanks, > > tglx > >
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v5 2/5] tick: Add freeze timer events "dbasehore ." <dbasehore@chromium.org> - 2017-07-18 22:10 +0200
Re: [PATCH v5 2/5] tick: Add freeze timer events Thomas Gleixner <tglx@linutronix.de> - 2017-07-19 00:00 +0200
Re: [PATCH v5 2/5] tick: Add freeze timer events "dbasehore ." <dbasehore@chromium.org> - 2017-07-19 00:10 +0200
Re: [PATCH v5 2/5] tick: Add freeze timer events Thomas Gleixner <tglx@linutronix.de> - 2017-07-19 00:30 +0200
Re: [PATCH v5 2/5] tick: Add freeze timer events Thomas Gleixner <tglx@linutronix.de> - 2017-07-19 00:40 +0200
Re: [PATCH v5 2/5] tick: Add freeze timer events "dbasehore ." <dbasehore@chromium.org> - 2017-07-19 00:40 +0200
csiph-web