Re: [PATCH] powertop: code shrink -- more and more robust process_timer_stats

Maksym Kryzhanovskyy xmaks at email.cz
Thu Nov 4 09:02:48 UTC 2010


> I don't like "total_events" optimization. strstr is somewhat
> more expensive function than strcmp, whereas added #ifdefs
> make code harder to read. I guess it saves 15 bytes or so?

Ok, attached is an another patch.  Please review and consider usage.

> 
> I believe you meant index_in_strings, not index_in_substrings?
> 
> Applied with these small changes, thanks!
> 
> -- 
> vda
> 
> 
> 
Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox.powertop.patch
Type: text/x-patch
Size: 1768 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20101104/0e7a66da/attachment-0001.bin>


More information about the busybox mailing list