On Tue, Feb 08, 2011 at 04:09:29PM +0000, Alan Cox wrote: > > Ok, if the hardware has no mechanism for reporting the instantaneous > > draw then I can see it not working well in an hwmon sense. But I'd > > really prefer to see this look far more generic than it does - surely > > other hardware has similar functionality? > > I've not seen any - not anything genericisable anyway. I guess in theory > you could dramatically extend the regulator API to do power draw > management, bus current monitoring and overcurrent callbacks but I'm not > sure it would make any sense. What you do with such events and how you > manage it is incredibly platform specific. > > In the PC world it's not so bad because overcurrent is a fault state - > you whine about it and either shut down or cross fingers and keep going. > In embedded devices it's not that simple and it is actively managed. Yeah, fair enough. I'll queue this up. -- Matthew Garrett | mjg59@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html