Commit b8f0ca85 authored by Alessandro Rubini's avatar Alessandro Rubini

core: use spinlock_t to please 2.6.32 and earlier

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 1ee496cb
......@@ -26,7 +26,7 @@ struct zio_buffer_type {
struct zio_obj_head head;
struct module *owner;
struct list_head list; /* instances, and list lock */
struct spinlock lock;
spinlock_t lock;
unsigned long flags;
const struct zio_sysfs_operations *s_op;
......@@ -69,7 +69,7 @@ struct zio_bi {
/* Those using generic_read need this information */
unsigned long flags; /* input or output, etc */
wait_queue_head_t q; /* for reading or writing */
struct spinlock lock;
spinlock_t lock;
/* Standard and extended attributes for this object */
struct zio_attribute_set zattr_set;
......
......@@ -11,7 +11,7 @@ struct zio_trigger_type {
struct zio_obj_head head;
struct module *owner;
struct list_head list; /* instances, and list lock */
struct spinlock lock;
spinlock_t lock;
unsigned long flags; /* to be defined */
const struct zio_sysfs_operations *s_op;
......@@ -33,7 +33,7 @@ struct zio_ti {
unsigned long flags; /* input or output, etc */
int nsamples;
struct spinlock lock;
spinlock_t lock;
/* This is for software stamping */
struct timespec tstamp;
uint64_t tstamp_extra;
......
......@@ -51,7 +51,7 @@ enum FFA_STATUS {
};
struct zio_ffa {
struct spinlock lock;
spinlock_t lock;
struct ffa_cell *cell;
};
......
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