1
linux/drivers/net/irda
Tejun Heo a0acae0e88 freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the
refrigerator.  Calling refrigerator() instead of try_to_freeze()
doesn't save anything noticeable or removes any race condition.

* Rename refrigerator() to __refrigerator() and make it return bool
  indicating whether it scheduled out for freezing.

* Update try_to_freeze() to return bool and relay the return value of
  __refrigerator() if freezing().

* Convert all refrigerator() users to try_to_freeze().

* Update documentation accordingly.

* While at it, add might_sleep() to try_to_freeze().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Samuel Ortiz <samuel@sortiz.org>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Kara <jack@suse.cz>
Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp>
Cc: Christoph Hellwig <hch@infradead.org>
2011-11-21 12:32:22 -08:00
..
act200l-sir.c
actisys-sir.c
ali-ircc.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
ali-ircc.h
au1k_ir.c
au1000_ircc.h
bfin_sir.c
bfin_sir.h
donauboe.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
donauboe.h
ep7211-sir.c
esi-sir.c
girbil-sir.c
irda-usb.c
irda-usb.h
irtty-sir.c
irtty-sir.h
Kconfig Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2011-11-03 13:28:14 -07:00
kingsun-sir.c
ks959-sir.c
ksdazzle-sir.c
litelink-sir.c
ma600-sir.c
Makefile
mcp2120-sir.c
mcs7780.c
mcs7780.h
nsc-ircc.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
nsc-ircc.h
old_belkin-sir.c
pxaficp_ir.c net: remove mm.h inclusion from netdevice.h 2011-06-21 19:17:20 -07:00
sa1100_ir.c
sh_irda.c net/irda: sh_irda: add PM support 2011-09-15 17:19:28 -04:00
sh_sir.c net/irda: sh_sir: tidyup compile warning 2011-08-11 05:52:57 -07:00
sir_dev.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
sir_dongle.c
sir-dev.h
smsc-ircc2.c irda: use PCI_VENDOR_ID_* 2011-08-03 19:04:11 -07:00
smsc-ircc2.h
smsc-sio.h
stir4200.c freezer: unexport refrigerator() and update try_to_freeze() slightly 2011-11-21 12:32:22 -08:00
tekram-sir.c
toim3232-sir.c treewide: transciever/transceiver spelling fixes 2011-06-24 11:20:14 +02:00
via-ircc.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
via-ircc.h
vlsi_ir.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
vlsi_ir.h
w83977af_ir.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
w83977af_ir.h
w83977af.h