]> git.baikalelectronics.ru Git - kernel.git/commit
pm_qos: Get rid of the allocation in pm_qos_add_request()
authorJames Bottomley <James.Bottomley@suse.de>
Mon, 5 Jul 2010 20:53:06 +0000 (22:53 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 19 Jul 2010 00:00:34 +0000 (02:00 +0200)
commit6991b4f060f5fce5d1afc2b61a338103be03de6f
tree27a3dba7a179102ac5bfdd5935679bd2abd3f70f
parent959e4d56304daa56c6ed042913eaededb1c3f88d
pm_qos: Get rid of the allocation in pm_qos_add_request()

All current users of pm_qos_add_request() have the ability to supply
the memory required by the pm_qos routines, so make them do this and
eliminate the kmalloc() with pm_qos_add_request().  This has the
double benefit of making the call never fail and allowing it to be
called from atomic context.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: mark gross <markgross@thegnar.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/net/e1000e/netdev.c
drivers/net/igbvf/netdev.c
drivers/net/wireless/ipw2x00/ipw2100.c
include/linux/netdevice.h
include/linux/pm_qos_params.h
include/sound/pcm.h
kernel/pm_qos_params.c
sound/core/pcm_native.c