atomic_inc and spin_lock_irq

From: Rogelio M. Serrano Jr.
Date: Thu Dec 18 2014 - 16:07:51 EST


whats the difference between:

atomic_inc(&port->count);

and

spin_lock_irq(&port->lock);
++port->count;
spin_unlock_irq(&port->lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/