~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to modules/linux/vmblock/include/compat_sched.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
#define compat_set_freezable() do {} while (0)
272
272
#endif
273
273
 
 
274
/*
 
275
 * Since 2.6.27-rc2 kill_proc() is gone... Replacement (GPL-only!)
 
276
 * API is available since 2.6.19.  Use them from 2.6.27-rc1 up.
 
277
 */
 
278
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
 
279
typedef int compat_pid;
 
280
#define compat_find_get_pid(pid) (pid)
 
281
#define compat_put_pid(pid) do { } while (0)
 
282
#define compat_kill_pid(pid, sig, flag) kill_proc(pid, sig, flag)
 
283
#else
 
284
typedef struct pid * compat_pid;
 
285
#define compat_find_get_pid(pid) find_get_pid(pid)
 
286
#define compat_put_pid(pid) put_pid(pid)
 
287
#define compat_kill_pid(pid, sig, flag) kill_pid(pid, sig, flag)
 
288
#endif
 
289
 
 
290
 
274
291
#endif /* __COMPAT_SCHED_H__ */