diff options
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/asm-offsets.c | 8 | ||||
-rw-r--r-- | arch/mn10300/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/init_task.c | 5 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial-low.S | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 14 | ||||
-rw-r--r-- | arch/mn10300/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/sys_mn10300.c | 1 |
7 files changed, 16 insertions, 18 deletions
diff --git a/arch/mn10300/kernel/asm-offsets.c b/arch/mn10300/kernel/asm-offsets.c index 2646fcbd7d89..02dc7e461fef 100644 --- a/arch/mn10300/kernel/asm-offsets.c +++ b/arch/mn10300/kernel/asm-offsets.c | |||
@@ -85,7 +85,7 @@ void foo(void) | |||
85 | OFFSET(__rx_buffer, mn10300_serial_port, rx_buffer); | 85 | OFFSET(__rx_buffer, mn10300_serial_port, rx_buffer); |
86 | OFFSET(__rx_inp, mn10300_serial_port, rx_inp); | 86 | OFFSET(__rx_inp, mn10300_serial_port, rx_inp); |
87 | OFFSET(__rx_outp, mn10300_serial_port, rx_outp); | 87 | OFFSET(__rx_outp, mn10300_serial_port, rx_outp); |
88 | OFFSET(__tx_info_buffer, mn10300_serial_port, uart.info); | 88 | OFFSET(__uart_state, mn10300_serial_port, uart.state); |
89 | OFFSET(__tx_xchar, mn10300_serial_port, tx_xchar); | 89 | OFFSET(__tx_xchar, mn10300_serial_port, tx_xchar); |
90 | OFFSET(__tx_break, mn10300_serial_port, tx_break); | 90 | OFFSET(__tx_break, mn10300_serial_port, tx_break); |
91 | OFFSET(__intr_flags, mn10300_serial_port, intr_flags); | 91 | OFFSET(__intr_flags, mn10300_serial_port, intr_flags); |
@@ -95,7 +95,7 @@ void foo(void) | |||
95 | OFFSET(__iobase, mn10300_serial_port, _iobase); | 95 | OFFSET(__iobase, mn10300_serial_port, _iobase); |
96 | 96 | ||
97 | DEFINE(__UART_XMIT_SIZE, UART_XMIT_SIZE); | 97 | DEFINE(__UART_XMIT_SIZE, UART_XMIT_SIZE); |
98 | OFFSET(__xmit_buffer, uart_info, xmit.buf); | 98 | OFFSET(__xmit_buffer, uart_state, xmit.buf); |
99 | OFFSET(__xmit_head, uart_info, xmit.head); | 99 | OFFSET(__xmit_head, uart_state, xmit.head); |
100 | OFFSET(__xmit_tail, uart_info, xmit.tail); | 100 | OFFSET(__xmit_tail, uart_state, xmit.tail); |
101 | } | 101 | } |
diff --git a/arch/mn10300/kernel/entry.S b/arch/mn10300/kernel/entry.S index e0d2563af4f2..a94e7ea3faa6 100644 --- a/arch/mn10300/kernel/entry.S +++ b/arch/mn10300/kernel/entry.S | |||
@@ -723,7 +723,7 @@ ENTRY(sys_call_table) | |||
723 | .long sys_preadv | 723 | .long sys_preadv |
724 | .long sys_pwritev /* 335 */ | 724 | .long sys_pwritev /* 335 */ |
725 | .long sys_rt_tgsigqueueinfo | 725 | .long sys_rt_tgsigqueueinfo |
726 | .long sys_perf_counter_open | 726 | .long sys_perf_event_open |
727 | 727 | ||
728 | 728 | ||
729 | nr_syscalls=(.-sys_call_table)/4 | 729 | nr_syscalls=(.-sys_call_table)/4 |
diff --git a/arch/mn10300/kernel/init_task.c b/arch/mn10300/kernel/init_task.c index 80d423b80af3..a481b043bea7 100644 --- a/arch/mn10300/kernel/init_task.c +++ b/arch/mn10300/kernel/init_task.c | |||
@@ -27,9 +27,8 @@ static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | |||
27 | * way process stacks are handled. This is done by having a special | 27 | * way process stacks are handled. This is done by having a special |
28 | * "init_task" linker map entry.. | 28 | * "init_task" linker map entry.. |
29 | */ | 29 | */ |
30 | union thread_union init_thread_union | 30 | union thread_union init_thread_union __init_task_data = |
31 | __attribute__((__section__(".data.init_task"))) = | 31 | { INIT_THREAD_INFO(init_task) }; |
32 | { INIT_THREAD_INFO(init_task) }; | ||
33 | 32 | ||
34 | /* | 33 | /* |
35 | * Initial task structure. | 34 | * Initial task structure. |
diff --git a/arch/mn10300/kernel/mn10300-serial-low.S b/arch/mn10300/kernel/mn10300-serial-low.S index 224485388228..66702d256610 100644 --- a/arch/mn10300/kernel/mn10300-serial-low.S +++ b/arch/mn10300/kernel/mn10300-serial-low.S | |||
@@ -130,7 +130,7 @@ ENTRY(mn10300_serial_vdma_tx_handler) | |||
130 | or d2,d2 | 130 | or d2,d2 |
131 | bne mnsc_vdma_tx_xchar | 131 | bne mnsc_vdma_tx_xchar |
132 | 132 | ||
133 | mov (__tx_info_buffer,a3),a2 # get the uart_info struct for Tx | 133 | mov (__uart_state,a3),a2 # see if the TTY Tx queue has anything in it |
134 | mov (__xmit_tail,a2),d3 | 134 | mov (__xmit_tail,a2),d3 |
135 | mov (__xmit_head,a2),d2 | 135 | mov (__xmit_head,a2),d2 |
136 | cmp d3,d2 | 136 | cmp d3,d2 |
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c index 2fd59664d00a..229b710fc5d5 100644 --- a/arch/mn10300/kernel/mn10300-serial.c +++ b/arch/mn10300/kernel/mn10300-serial.c | |||
@@ -391,7 +391,7 @@ static int mask_test_and_clear(volatile u8 *ptr, u8 mask) | |||
391 | static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) | 391 | static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) |
392 | { | 392 | { |
393 | struct uart_icount *icount = &port->uart.icount; | 393 | struct uart_icount *icount = &port->uart.icount; |
394 | struct tty_struct *tty = port->uart.info->port.tty; | 394 | struct tty_struct *tty = port->uart.state->port.tty; |
395 | unsigned ix; | 395 | unsigned ix; |
396 | int count; | 396 | int count; |
397 | u8 st, ch, push, status, overrun; | 397 | u8 st, ch, push, status, overrun; |
@@ -566,16 +566,16 @@ static void mn10300_serial_transmit_interrupt(struct mn10300_serial_port *port) | |||
566 | { | 566 | { |
567 | _enter("%s", port->name); | 567 | _enter("%s", port->name); |
568 | 568 | ||
569 | if (!port->uart.info || !port->uart.info->port.tty) { | 569 | if (!port->uart.state || !port->uart.state->port.tty) { |
570 | mn10300_serial_dis_tx_intr(port); | 570 | mn10300_serial_dis_tx_intr(port); |
571 | return; | 571 | return; |
572 | } | 572 | } |
573 | 573 | ||
574 | if (uart_tx_stopped(&port->uart) || | 574 | if (uart_tx_stopped(&port->uart) || |
575 | uart_circ_empty(&port->uart.info->xmit)) | 575 | uart_circ_empty(&port->uart.state->xmit)) |
576 | mn10300_serial_dis_tx_intr(port); | 576 | mn10300_serial_dis_tx_intr(port); |
577 | 577 | ||
578 | if (uart_circ_chars_pending(&port->uart.info->xmit) < WAKEUP_CHARS) | 578 | if (uart_circ_chars_pending(&port->uart.state->xmit) < WAKEUP_CHARS) |
579 | uart_write_wakeup(&port->uart); | 579 | uart_write_wakeup(&port->uart); |
580 | } | 580 | } |
581 | 581 | ||
@@ -596,7 +596,7 @@ static void mn10300_serial_cts_changed(struct mn10300_serial_port *port, u8 st) | |||
596 | *port->_control = ctr; | 596 | *port->_control = ctr; |
597 | 597 | ||
598 | uart_handle_cts_change(&port->uart, st & SC2STR_CTS); | 598 | uart_handle_cts_change(&port->uart, st & SC2STR_CTS); |
599 | wake_up_interruptible(&port->uart.info->delta_msr_wait); | 599 | wake_up_interruptible(&port->uart.state->port.delta_msr_wait); |
600 | } | 600 | } |
601 | 601 | ||
602 | /* | 602 | /* |
@@ -705,8 +705,8 @@ static void mn10300_serial_start_tx(struct uart_port *_port) | |||
705 | 705 | ||
706 | _enter("%s{%lu}", | 706 | _enter("%s{%lu}", |
707 | port->name, | 707 | port->name, |
708 | CIRC_CNT(&port->uart.info->xmit.head, | 708 | CIRC_CNT(&port->uart.state->xmit.head, |
709 | &port->uart.info->xmit.tail, | 709 | &port->uart.state->xmit.tail, |
710 | UART_XMIT_SIZE)); | 710 | UART_XMIT_SIZE)); |
711 | 711 | ||
712 | /* kick the virtual DMA controller */ | 712 | /* kick the virtual DMA controller */ |
diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index 79890edfd67a..3f24c298a3af 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c | |||
@@ -285,7 +285,7 @@ static void c_stop(struct seq_file *m, void *v) | |||
285 | { | 285 | { |
286 | } | 286 | } |
287 | 287 | ||
288 | struct seq_operations cpuinfo_op = { | 288 | const struct seq_operations cpuinfo_op = { |
289 | .start = c_start, | 289 | .start = c_start, |
290 | .next = c_next, | 290 | .next = c_next, |
291 | .stop = c_stop, | 291 | .stop = c_stop, |
diff --git a/arch/mn10300/kernel/sys_mn10300.c b/arch/mn10300/kernel/sys_mn10300.c index 3e52a1054327..8ca5af00334c 100644 --- a/arch/mn10300/kernel/sys_mn10300.c +++ b/arch/mn10300/kernel/sys_mn10300.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/stat.h> | 19 | #include <linux/stat.h> |
20 | #include <linux/mman.h> | 20 | #include <linux/mman.h> |
21 | #include <linux/file.h> | 21 | #include <linux/file.h> |
22 | #include <linux/utsname.h> | ||
23 | #include <linux/tty.h> | 22 | #include <linux/tty.h> |
24 | 23 | ||
25 | #include <asm/uaccess.h> | 24 | #include <asm/uaccess.h> |