diff options
author | jdike <jdike> | 2003-03-22 21:38:42 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-03-22 21:38:42 +0000 |
commit | 05261739cb7c0353586d40d0d61f6500ba5ac6c4 (patch) | |
tree | 4006632f8a00979bdafac4465b01548f503702a9 | |
parent | d3d39e0d1279f4a4643e85fe5876c5313be06b54 (diff) | |
download | uml-history-05261739cb7c0353586d40d0d61f6500ba5ac6c4.tar.gz |
Removed some unused crap.
-rw-r--r-- | arch/um/include/2_5compat.h | 56 |
1 files changed, 2 insertions, 54 deletions
diff --git a/arch/um/include/2_5compat.h b/arch/um/include/2_5compat.h index 4a3a668..d6e8fb6 100644 --- a/arch/um/include/2_5compat.h +++ b/arch/um/include/2_5compat.h @@ -8,9 +8,6 @@ #include "linux/version.h" -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) - -#define mk_kdev(maj, min) MKDEV(maj, min) #define INIT_CONSOLE(dev_name, write_proc, device_proc, setup_proc, f) { \ name : dev_name, \ write : write_proc, \ @@ -24,66 +21,17 @@ next : NULL \ } -#define ELV_NOOP ELEVATOR_NOOP #define INIT_ELV(queue, elv) elevator_init(elv, ELV_NOOP) +#define ELV_NOOP ELEVATOR_NOOP + #define INIT_HARDSECT(arr, maj, sizes) arr[maj] = sizes #define IS_WRITE(req) ((req)->cmd == WRITE) -#define IS_READ(req) ((req)->cmd == READ) - -#define CPU(task) ((task)->processor) - -#define yield() do { current->policy |= SCHED_YIELD; schedule(); } while(0) #define SET_PRI(task) \ do { (task)->nice = 20; (task)->counter = -100; } while(0); -#else - -#define INIT_CONSOLE(dev_name, write_proc, device_proc, setup_proc, f) { \ - name : dev_name, \ - write : write_proc, \ - read : NULL, \ - device : device_proc, \ - setup : setup_proc, \ - flags : f, \ - index : -1, \ - cflag : 0, \ - next : NULL \ -} - -#define INIT_GENDISK(maj, name, parts, bsizes, max, blops) { \ - major : maj, \ - major_name : name, \ - minor_shift : 0, \ - part : parts, \ - sizes : bsizes, \ - nr_real : max, \ - next : NULL, \ - fops : blops, \ - de_arr : NULL, \ - flags : 0 \ -} - -#define INIT_QUEUE(queue, request, lock) blk_init_queue(queue, request, lock) - -#define ELV_NOOP elevator_noop -#define INIT_ELV(queue, elv) elevator_init(queue, elv, ELV_NOOP) - -#define REQUEST_LOCK ubd_lock - -#define INIT_HARDSECT(arr, maj, sizes) - -#define IS_WRITE(req) (rq_data_dir(req) == WRITE) -#define IS_READ(req) (rq_data_dir(req) == READ) - -#define CPU(task) ((task)->cpu) - -#define SET_PRI(task) do ; while(0) - -#endif - #endif /* |