Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932970Ab2EOOji (ORCPT ); Tue, 15 May 2012 10:39:38 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:45564 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932864Ab2EOOjf (ORCPT ); Tue, 15 May 2012 10:39:35 -0400 Date: Tue, 15 May 2012 10:39:34 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Lin Ming cc: Jens Axboe , , , Subject: Re: [RFC PATCH 3/3] block: add queue idle timer In-Reply-To: <1337071697-30920-4-git-send-email-ming.m.lin@intel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 18 On Tue, 15 May 2012, Lin Ming wrote: > Add an idle timer that is set to some suitable timeout and would be > added when the queue first goes empty. If nothing has happened during > the timeout interval, then the queue is suspended. You don't need to create an idle timer for runtime PM support; the runtime PM framework already has such a timer. Read Documentation/power/runtime_pm.txt, especially the parts describing pm_runtime_autosuspend() and related functions. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/