summaryrefslogtreecommitdiff
path: root/fs/sysfs
diff options
context:
space:
mode:
authorGiuliano Pochini <pochini@shiny.it>2010-02-14 20:15:51 +0300
committerTakashi Iwai <tiwai@suse.de>2010-02-15 12:38:10 +0300
commit4f8ada444cc7a7ea70cdc81f098b34c5f1f2df41 (patch)
treeded4e81a8e822ee43bdcaab71084c7b0bd58701f /fs/sysfs
parent19b50063780953563e3c3a2867c39aad7b9e64cf (diff)
downloadlinux-4f8ada444cc7a7ea70cdc81f098b34c5f1f2df41.tar.xz
ALSA: Echoaudio - Add firmware cache #2
This patch implements a simple cache for the firmware files when CONFIG_PM is defined. This patch changes get_firmware(), free_firmware() and adds free_firmware_cache(). The first two functions implement a very simple cache and the latter is used to actually release all the stored firmwares when the module is unloaded. When CONFIG_PM is not enabled those functions act as before, that is free_firmware() releases the firmware immediately and free_firmware_cache() does nothing. Signed-off-by: Giuliano Pochini <pochini@shiny.it> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions