From: "Rafael J. Wysocki" Subject: [RFC][PATCH 0/2] PM: More suspend core modifications Date: Sun, 10 Jun 2007 15:19:50 +0200 Message-ID: <200706101519.50588.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: linux-pm Cc: Pavel Machek List-Id: linux-pm@vger.kernel.org Hi, It seems that the core suspend code can be simplified even further. Namely, it's possible to reduce code duplication in drivers/base/power/suspend.c with the help of an auxiliary inline finction and it's possible to remove the suspend and resume support from struct device_type. Comments welcome. Greetings, Rafael -- "Premature optimization is the root of all evil." - Donald Knuth