Keep track of how many locks are being held at once, and check if it
is zero at switch_to() time. You can also do this to measure things
like max number of locks held at once and other statistics.
I added the first bit to sparc64 while hunting down a bug.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/