public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* PowerOP, Whatchanged/Issues/TODO 2/2
@ 2006-09-02 15:16 Eugeny S. Mints
  2006-09-02 18:33 ` Greg KH
  2006-09-03 12:44 ` Pavel Machek
  0 siblings, 2 replies; 7+ messages in thread
From: Eugeny S. Mints @ 2006-09-02 15:16 UTC (permalink / raw)
  To: pm list

whatchanged:
- optional sysfs interface is added
- code is moved under kernel/power
- Greg's comments on kobject and coding style are addressed

todo/issues:
- better implementation for getting registered operating point names
- move string parsing into powerop generic code
- configfs for operating points creation from user space

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PowerOP, Whatchanged/Issues/TODO 2/2
  2006-09-02 15:16 Eugeny S. Mints
@ 2006-09-02 18:33 ` Greg KH
  2006-09-02 23:13   ` Eugeny S. Mints
  2006-09-03 12:44 ` Pavel Machek
  1 sibling, 1 reply; 7+ messages in thread
From: Greg KH @ 2006-09-02 18:33 UTC (permalink / raw)
  To: Eugeny S. Mints; +Cc: pm list

On Sat, Sep 02, 2006 at 07:16:01PM +0400, Eugeny S. Mints wrote:
> whatchanged:
> - optional sysfs interface is added
> - code is moved under kernel/power
> - Greg's comments on kobject and coding style are addressed
> 
> todo/issues:
> - better implementation for getting registered operating point names
> - move string parsing into powerop generic code
> - configfs for operating points creation from user space

You forgot:
  - Handle module referencing counting issues.

Also, no #ifdefs in the .c code please, that debugging stuff doesn't
have to look like that, break it out into separate functions to keep the
codepath clean.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PowerOP, Whatchanged/Issues/TODO 2/2
  2006-09-02 18:33 ` Greg KH
@ 2006-09-02 23:13   ` Eugeny S. Mints
  2006-09-03  1:42     ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Eugeny S. Mints @ 2006-09-02 23:13 UTC (permalink / raw)
  To: Greg KH; +Cc: pm list

Greg,

Greg KH wrote:
> On Sat, Sep 02, 2006 at 07:16:01PM +0400, Eugeny S. Mints wrote:
>> whatchanged:
>> - optional sysfs interface is added
>> - code is moved under kernel/power
>> - Greg's comments on kobject and coding style are addressed
>>
>> todo/issues:
>> - better implementation for getting registered operating point names
>> - move string parsing into powerop generic code
>> - configfs for operating points creation from user space
> 
> You forgot:
>   - Handle module referencing counting issues.
i'm discussing this and other issues you pointed out in a separate email.
> 
> Also, no #ifdefs in the .c code please, that debugging stuff doesn't
> have to look like that,
do you mean CONFIG_POWEROP_SYSFS_OP_DEBUG_IF? Probably it's not a good name but 
it's not a debugging code. it could be CONFIG_POWEROP_SYSFS_OP_HW_IF - this 
special HW point might be useful in a production code.

Eugeny
> break it out into separate functions to keep the
> codepath clean.
> 
> thanks,
> 
> greg k-h
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PowerOP, Whatchanged/Issues/TODO 2/2
  2006-09-02 23:13   ` Eugeny S. Mints
@ 2006-09-03  1:42     ` Greg KH
  0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-09-03  1:42 UTC (permalink / raw)
  To: Eugeny S. Mints; +Cc: pm list

On Sun, Sep 03, 2006 at 03:13:03AM +0400, Eugeny S. Mints wrote:
> Greg,
> 
> Greg KH wrote:
> >On Sat, Sep 02, 2006 at 07:16:01PM +0400, Eugeny S. Mints wrote:
> >>whatchanged:
> >>- optional sysfs interface is added
> >>- code is moved under kernel/power
> >>- Greg's comments on kobject and coding style are addressed
> >>
> >>todo/issues:
> >>- better implementation for getting registered operating point names
> >>- move string parsing into powerop generic code
> >>- configfs for operating points creation from user space
> >
> >You forgot:
> >  - Handle module referencing counting issues.
> i'm discussing this and other issues you pointed out in a separate email.
> >
> >Also, no #ifdefs in the .c code please, that debugging stuff doesn't
> >have to look like that,
> do you mean CONFIG_POWEROP_SYSFS_OP_DEBUG_IF? Probably it's not a good name 
> but it's not a debugging code. it could be CONFIG_POWEROP_SYSFS_OP_HW_IF - 
> this special HW point might be useful in a production code.

No matter what the name, the #ifdef does not belong in the .c code in
the manner like this was done.  Please move it.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PowerOP, Whatchanged/Issues/TODO 2/2
  2006-09-02 15:16 Eugeny S. Mints
  2006-09-02 18:33 ` Greg KH
@ 2006-09-03 12:44 ` Pavel Machek
  1 sibling, 0 replies; 7+ messages in thread
From: Pavel Machek @ 2006-09-03 12:44 UTC (permalink / raw)
  To: Eugeny S. Mints; +Cc: pm list

Hi!

> whatchanged:
> - optional sysfs interface is added
> - code is moved under kernel/power
> - Greg's comments on kobject and coding style are addressed
> 
> todo/issues:
> - better implementation for getting registered operating point names
> - move string parsing into powerop generic code

Can we get rid of string parsing altogether? It should be possible to
design better in-kernel interface than char *. Can you just use opaque
structure?

-- 
Thanks for all the (sleeping) penguins.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* PowerOP, Whatchanged/Issues/TODO 2/2
@ 2006-09-14 14:38 Eugeny S. Mints
  0 siblings, 0 replies; 7+ messages in thread
From: Eugeny S. Mints @ 2006-09-14 14:38 UTC (permalink / raw)
  To: pm list; +Cc: Matthew Locke, Amit Kucheria, Igor Stoppa, kernel list

whatchanged:
- optional sysfs interface is added
- code is moved under kernel/power
- Greg's comments on kobject and coding style are addressed

todo/issues:
- better implementation for getting registered operating point names
- move string parsing into powerop generic code
- configfs for operating points creation from user space
- powerop driver module refcounting

^ permalink raw reply	[flat|nested] 7+ messages in thread

* PowerOP, Whatchanged/Issues/TODO 2/2
@ 2006-09-29 21:44 Eugeny S. Mints
  0 siblings, 0 replies; 7+ messages in thread
From: Eugeny S. Mints @ 2006-09-29 21:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-pm, matt, amit.kucheria, igor.stoppa, ext-Tuukka.Tikkanen

whatchanged:
- new concept of powerop power parameter is introduced
- new powerop core interface routine to set individual(or subset of)
  power parameter value is added
- no more string parsing at any layer
- no more va_list interface 
- powerop driver module refcounting is added
- documentation file including optional sysfs interface description is added

todo/issues:
- better implementation for getting registered operating point names
- configfs for operating points creation from user space

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-29 21:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 14:38 PowerOP, Whatchanged/Issues/TODO 2/2 Eugeny S. Mints
  -- strict thread matches above, loose matches on Subject: below --
2006-09-29 21:44 Eugeny S. Mints
2006-09-02 15:16 Eugeny S. Mints
2006-09-02 18:33 ` Greg KH
2006-09-02 23:13   ` Eugeny S. Mints
2006-09-03  1:42     ` Greg KH
2006-09-03 12:44 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox