diff options
Diffstat (limited to 'arch/um/kernel/smp.c')
-rw-r--r-- | arch/um/kernel/smp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/um/kernel/smp.c b/arch/um/kernel/smp.c index 62dd093cbcd7..47b690893c06 100644 --- a/arch/um/kernel/smp.c +++ b/arch/um/kernel/smp.c | |||
@@ -47,7 +47,7 @@ struct task_struct *idle_threads[NR_CPUS]; | |||
47 | 47 | ||
48 | void smp_send_reschedule(int cpu) | 48 | void smp_send_reschedule(int cpu) |
49 | { | 49 | { |
50 | os_write_file(cpu_data[cpu].ipi_pipe[1], "R", 1); | 50 | os_write_file_k(cpu_data[cpu].ipi_pipe[1], "R", 1); |
51 | num_reschedules_sent++; | 51 | num_reschedules_sent++; |
52 | } | 52 | } |
53 | 53 | ||
@@ -59,7 +59,7 @@ void smp_send_stop(void) | |||
59 | for(i = 0; i < num_online_cpus(); i++){ | 59 | for(i = 0; i < num_online_cpus(); i++){ |
60 | if(i == current_thread->cpu) | 60 | if(i == current_thread->cpu) |
61 | continue; | 61 | continue; |
62 | os_write_file(cpu_data[i].ipi_pipe[1], "S", 1); | 62 | os_write_file_k(cpu_data[i].ipi_pipe[1], "S", 1); |
63 | } | 63 | } |
64 | printk("done\n"); | 64 | printk("done\n"); |
65 | } | 65 | } |
@@ -108,8 +108,8 @@ static struct task_struct *idle_thread(int cpu) | |||
108 | { .pid = new_task->thread.mode.tt.extern_pid, | 108 | { .pid = new_task->thread.mode.tt.extern_pid, |
109 | .task = new_task } ); | 109 | .task = new_task } ); |
110 | idle_threads[cpu] = new_task; | 110 | idle_threads[cpu] = new_task; |
111 | CHOOSE_MODE(os_write_file(new_task->thread.mode.tt.switch_pipe[1], &c, | 111 | CHOOSE_MODE(os_write_file_k(new_task->thread.mode.tt.switch_pipe[1], &c, |
112 | sizeof(c)), | 112 | sizeof(c)), |
113 | ({ panic("skas mode doesn't support SMP"); })); | 113 | ({ panic("skas mode doesn't support SMP"); })); |
114 | return(new_task); | 114 | return(new_task); |
115 | } | 115 | } |
@@ -179,7 +179,7 @@ void IPI_handler(int cpu) | |||
179 | int fd; | 179 | int fd; |
180 | 180 | ||
181 | fd = cpu_data[cpu].ipi_pipe[0]; | 181 | fd = cpu_data[cpu].ipi_pipe[0]; |
182 | while (os_read_file(fd, &c, 1) == 1) { | 182 | while (os_read_file_k(fd, &c, 1) == 1) { |
183 | switch (c) { | 183 | switch (c) { |
184 | case 'C': | 184 | case 'C': |
185 | smp_call_function_slave(cpu); | 185 | smp_call_function_slave(cpu); |
@@ -239,7 +239,7 @@ int smp_call_function(void (*_func)(void *info), void *_info, int nonatomic, | |||
239 | info = _info; | 239 | info = _info; |
240 | 240 | ||
241 | for_each_online_cpu(i) | 241 | for_each_online_cpu(i) |
242 | os_write_file(cpu_data[i].ipi_pipe[1], "C", 1); | 242 | os_write_file_k(cpu_data[i].ipi_pipe[1], "C", 1); |
243 | 243 | ||
244 | while (atomic_read(&scf_started) != cpus) | 244 | while (atomic_read(&scf_started) != cpus) |
245 | barrier(); | 245 | barrier(); |