~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201207201942

« back to all changes in this revision

Viewing changes to modules/linux/vmci/compat_sched.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-03-20 10:19:00 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090320101900-1o604camiubq2de8
Tags: 2009.03.18-154848-2
Correcting patch system depends (Closes: #520493).

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
#endif
273
273
 
274
274
/*
 
275
 * Around 2.6.27 kernel stopped sending signals to kernel
 
276
 * threads being frozen, instead threads have to check
 
277
 * freezing() or use wait_event_freezable(). Unfortunately
 
278
 * wait_event_freezable() completely hides the fact that
 
279
 * thread was frozen from calling code and sometimes we do
 
280
 * want to know that.
 
281
 */
 
282
#ifdef PF_FREEZER_NOSIG
 
283
#define compat_wait_check_freezing() freezing(current)
 
284
#else
 
285
#define compat_wait_check_freezing() (0)
 
286
#endif
 
287
 
 
288
/*
275
289
 * Since 2.6.27-rc2 kill_proc() is gone... Replacement (GPL-only!)
276
290
 * API is available since 2.6.19.  Use them from 2.6.27-rc1 up.
277
291
 */