From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Richard A. Griffiths" Subject: Re: [linux-pm] OpPoint summary Date: Mon, 18 Sep 2006 07:33:24 -0700 Message-ID: <1158590004.8239.14.camel@localhost.localdomain> References: <20060911195546.GB11901@elf.ucw.cz> <4505CCDA.8020501@gmail.com> <20060911210026.GG11901@elf.ucw.cz> <4505DDA6.8080603@gmail.com> <20060911225617.GB13474@elf.ucw.cz> <20060912001701.GC14234@linux.intel.com> <20060912033700.GD27397@kroah.com> <20060914055529.GA18031@kroah.com> <20060917174835.GA2225@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060917174835.GA2225@elf.ucw.cz> Sender: linux-kernel-owner@vger.kernel.org To: Pavel Machek Cc: David Singleton , linux-pm@lists.osdl.org, kernel list List-Id: linux-pm@vger.kernel.org On Sun, 2006-09-17 at 19:48 +0200, Pavel Machek wrote: > Hi! > > > >Care to resend your patches in the proper format, through email so that > > >we can see them, and possibly get some testing in -mm if they look sane? > > > > Greg, > > here's the patch that implements operating points for different > > frequencies > > for the speedstep-centrino line of processors. Operating points are created > > in much the same manner that cpufreq tables are. This works for both > > simple implementations like the centrino and more complex SoC systems > > like the arm-pxa72x which has several clocks to control, and different clock > > divisors and multipliers. > > > +static struct oppoint lowest = { > > + .name = "lowest", > > + .type = PM_FREQ_CHANGE, > > + .frequency = 0, > > + .voltage = 0, > > + .latency = 15, > > + .prepare_transition = cpufreq_prepare_transition, > > + .transition = centrino_transition, > > + .finish_transition = cpufreq_finish_transition, > > +}; > > We had nice, descriptive interface... with numbers. Now you want to > introduce english state names... looks like a step back to me. Maybe a compromise could be reached where a defined set of numbers maps to string names ala Unix init states. Many people (at least me) still invoke init 6 to reboot a system. A defined table would satisfy both the number and string camps. Richard