diff options
author | David Kilroy <kilroyd@googlemail.com> | 2008-11-22 05:37:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 09:47:47 -0500 |
commit | 39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f (patch) | |
tree | e13cd6eef6b24084a54cd024c2af19c71f4d0e1f /drivers/net/wireless/orinoco/orinoco.h | |
parent | ac7cafd72261857278dff9f737e600b30088653b (diff) |
orinoco: Provide option to avoid unnecessary fw caching
Make firmware caching on startup optional, and make it default.
When the option is not selected and PM_SLEEP is configured, then
cache firmware in the suspend pm_notifier. This configuration saves
about 64k RAM in normal use, but can lead to a situation where the
driver is configured to use a different firmware.
Signed-off by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco.h')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco.h b/drivers/net/wireless/orinoco/orinoco.h index f6eaea98db53..00750c8ba7db 100644 --- a/drivers/net/wireless/orinoco/orinoco.h +++ b/drivers/net/wireless/orinoco/orinoco.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #define DRIVER_VERSION "0.15" | 10 | #define DRIVER_VERSION "0.15" |
11 | 11 | ||
12 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
13 | #include <linux/suspend.h> | ||
13 | #include <linux/netdevice.h> | 14 | #include <linux/netdevice.h> |
14 | #include <linux/wireless.h> | 15 | #include <linux/wireless.h> |
15 | #include <net/iw_handler.h> | 16 | #include <net/iw_handler.h> |
@@ -170,6 +171,8 @@ struct orinoco_private { | |||
170 | /* Cached in memory firmware to use during ->resume. */ | 171 | /* Cached in memory firmware to use during ->resume. */ |
171 | const struct firmware *cached_pri_fw; | 172 | const struct firmware *cached_pri_fw; |
172 | const struct firmware *cached_fw; | 173 | const struct firmware *cached_fw; |
174 | |||
175 | struct notifier_block pm_notifier; | ||
173 | }; | 176 | }; |
174 | 177 | ||
175 | #ifdef ORINOCO_DEBUG | 178 | #ifdef ORINOCO_DEBUG |