diff options
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/irq.c | 1 | ||||
| -rw-r--r-- | arch/um/kernel/mem.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index 50a288bb875a..dbf2f5bc842f 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
| @@ -142,6 +142,7 @@ int activate_fd(int irq, int fd, int type, void *dev_id) | |||
| 142 | .events = events, | 142 | .events = events, |
| 143 | .current_events = 0 } ); | 143 | .current_events = 0 } ); |
| 144 | 144 | ||
| 145 | err = -EBUSY; | ||
| 145 | spin_lock_irqsave(&irq_lock, flags); | 146 | spin_lock_irqsave(&irq_lock, flags); |
| 146 | for (irq_fd = active_fds; irq_fd != NULL; irq_fd = irq_fd->next) { | 147 | for (irq_fd = active_fds; irq_fd != NULL; irq_fd = irq_fd->next) { |
| 147 | if ((irq_fd->fd == fd) && (irq_fd->type == type)) { | 148 | if ((irq_fd->fd == fd) && (irq_fd->type == type)) { |
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index e85d65deea0d..df7d662b98ce 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
| @@ -64,8 +64,6 @@ static void setup_highmem(unsigned long highmem_start, | |||
| 64 | 64 | ||
| 65 | void mem_init(void) | 65 | void mem_init(void) |
| 66 | { | 66 | { |
| 67 | max_low_pfn = (high_physmem - uml_physmem) >> PAGE_SHIFT; | ||
| 68 | |||
| 69 | /* clear the zero-page */ | 67 | /* clear the zero-page */ |
| 70 | memset((void *) empty_zero_page, 0, PAGE_SIZE); | 68 | memset((void *) empty_zero_page, 0, PAGE_SIZE); |
| 71 | 69 | ||
| @@ -80,6 +78,7 @@ void mem_init(void) | |||
| 80 | 78 | ||
| 81 | /* this will put all low memory onto the freelists */ | 79 | /* this will put all low memory onto the freelists */ |
| 82 | totalram_pages = free_all_bootmem(); | 80 | totalram_pages = free_all_bootmem(); |
| 81 | max_low_pfn = totalram_pages; | ||
| 83 | #ifdef CONFIG_HIGHMEM | 82 | #ifdef CONFIG_HIGHMEM |
| 84 | totalhigh_pages = highmem >> PAGE_SHIFT; | 83 | totalhigh_pages = highmem >> PAGE_SHIFT; |
| 85 | totalram_pages += totalhigh_pages; | 84 | totalram_pages += totalhigh_pages; |
