#7981 NORM 8.2.1: EC mask setting is inefficient

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 26 23:13:39 EDT 2008

#7981: EC mask setting is inefficient
   Reporter:  cjb        |       Owner:  dsaxena      
       Type:  defect     |      Status:  new          
   Priority:  normal     |   Milestone:  8.2.1        
  Component:  kernel     |     Version:  not specified
 Resolution:             |    Keywords:               
Next_action:  never set  |    Verified:  0            
  Blockedby:             |    Blocking:               

Comment(by cjb):

 Replying to [comment:1 dsaxena]:
 > This might be due to OHM disabling events via the
 > interface, where we write one file per bit and on every write I do a RMW
 > on the EC mask. I should do some sort of caching in the kernel and only
 > back the bits when we trigger a suspend.

 This won't quite work, because I want to turn off the BAT SOC events
 before going into idle suspend, and I want to re-enable them on resume.
 Perhaps instead have the sysfs files modify the kernel's internal idea of
 the mask, and then "echo 1 > commit" to commit them to the EC?  (Or
 something similar.)

Ticket URL: <http://dev.laptop.org/ticket/7981#comment:3>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list