* [lm-sensors] [patch 0/2] hwmon/pc87360 shrink object size by
@ 2006-04-07 4:09 Jim Cromie
0 siblings, 0 replies; 2+ messages in thread
From: Jim Cromie @ 2006-04-07 4:09 UTC (permalink / raw)
To: lm-sensors
Jim Cromie wrote:
> <snipped liberally throughout>
>
> Heres 2 patches to shrink object size of hwmon/pc87360 driver
> 1. hwmon-pc87360-use-sensor-attr-2.patch
> 2. hwmon-pc87360-sysfs-combo-callbacks.patch
>
> These were tested against 2.6.16 + 4 patches from -mm1
> (-mm1 is panic'g at boot on this NFS-root box)
>
>
Ive revalidated these 2 patches against 2.6.17-rc1-mm1
> Id like to see these get into -mm2
>
thanks
jimc
^ permalink raw reply [flat|nested] 2+ messages in thread
* [lm-sensors] [patch 0/2] hwmon/pc87360 shrink object size by
@ 2006-03-26 22:47 Jim Cromie
0 siblings, 0 replies; 2+ messages in thread
From: Jim Cromie @ 2006-03-26 22:47 UTC (permalink / raw)
To: lm-sensors
From: Jim Cromie <jim.cromie at gmail.com>
Heres 2 patches to shrink object size of hwmon/pc87360 driver
1. hwmon-pc87360-use-sensor-attr-2.patch
Converts SENSOR_ATTRs to SENSOR_ATTR_2s for all sysfs-callbacks.
Also adds a number of #defines which provide values used to
initialize the sensor_device_attr_2.nr field for each sensor.
2. hwmon-pc87360-sysfs-combo-callbacks.patch
This combines individual (show|set)_Sensor_Attr callbacks into
(show|set)_Sensor callbacks that handle all that Sensor's Attrs.
The callback routines use the .nr field to determine what attribute
they were called for.
Combining callbacks results in a non-trivial size reduction (b4, after)
14588 3224 16 17828 45a4 A-2/drivers/hwmon/pc87360.ko
13124 3224 16 16364 3fec A-3/drivers/hwmon/pc87360.ko
ie about 9%
Combining all show_X (for all X) together is possible, but would
compromise clarity, and would save only ~ 1/5 th additional space.
These were tested against 2.6.16 + 4 patches from -mm1
(-mm1 is panic'g at boot on this NFS-root box)
Id like to see these get into -mm2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-07 4:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 4:09 [lm-sensors] [patch 0/2] hwmon/pc87360 shrink object size by Jim Cromie
-- strict thread matches above, loose matches on Subject: below --
2006-03-26 22:47 Jim Cromie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.