Commit b1e16506 authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds

[PATCH] SMP-safe macserial driver

The patch below removes the uses of save_flags/restore_flags/cli
etc. from the macserial driver and replaces them with a spinlock.
parent c2970ed3
This diff is collapsed.
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#ifndef _MACSERIAL_H #ifndef _MACSERIAL_H
#define _MACSERIAL_H #define _MACSERIAL_H
#include <linux/spinlock.h>
#define NUM_ZSREGS 16 #define NUM_ZSREGS 16
struct serial_struct { struct serial_struct {
...@@ -105,6 +107,7 @@ struct mac_serial { ...@@ -105,6 +107,7 @@ struct mac_serial {
struct mac_zschannel *zs_chan_a; /* A side registers */ struct mac_zschannel *zs_chan_a; /* A side registers */
unsigned char read_reg_zero; unsigned char read_reg_zero;
struct device_node* dev_node; struct device_node* dev_node;
spinlock_t lock;
char soft_carrier; /* Use soft carrier on this channel */ char soft_carrier; /* Use soft carrier on this channel */
char break_abort; /* Is serial console in, so process brk/abrt */ char break_abort; /* Is serial console in, so process brk/abrt */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment