diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-19 15:57:38 -0800 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-19 15:57:38 -0800 |
commit | 6414245c8fb95b7664678c441f8d84ef047d6489 (patch) | |
tree | 3a752553208d9a70db5d8138fcf53c2e17879ca3 /linux/drivers/media/dvb | |
parent | 3f9c226d66a931318cf7bfcf861ce191007013e6 (diff) | |
download | mediapointer-dvb-s2-6414245c8fb95b7664678c441f8d84ef047d6489.tar.gz mediapointer-dvb-s2-6414245c8fb95b7664678c441f8d84ef047d6489.tar.bz2 |
compat: Add code to compat.h for try_to_sleep()
From: Trent Piepho <xyzzy@speakeasy.org>
Compat.h used to have an argument, now it doesn't. There was also some code:
if (current->flags & PF_FREEZE) { refrigerator(PF_FREEZE); }
which is the same as try_to_freeze(), and so can be replaced by it.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index f39e3504d..319dccf5f 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -540,14 +540,8 @@ restart: break; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) if (try_to_freeze()) goto restart; -#else - if (current->flags & PF_FREEZE) { - refrigerator (PF_FREEZE); - } -#endif if (down_interruptible(&fepriv->sem)) break; |