#ifndef __LINUX_INSIDE_SPINLOCK_H # error "Please do not include this file directly." #endif
#include <asm/processor.h> /* for cpu_relax() */ #include <asm/barrier.h>
/* * include/linux/spinlock_up.h - UP-debug version of spinlocks. * * portions Copyright 2005, Red Hat, Inc., Ingo Molnar * Released under the General Public License (GPL). * * In the debug case, 1 means unlocked, 0 means locked. (the values * are inverted, to catch initialization bugs) * * No atomicity anywhere, we are on UP. However, we still need * the compiler barriers, because we do not want the compiler to * move potentially faulting instructions (notably user accesses) * into the locked sequence, resulting in non-atomic execution.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.