kernel: Remove numerous #include <sys/thread2.h>.Most of them were added when we converted spl*() calls tocrit_enter()/crit_exit(), almost 14 years ago. We can nowremove a good chunk of them agai
kernel: Remove numerous #include <sys/thread2.h>.Most of them were added when we converted spl*() calls tocrit_enter()/crit_exit(), almost 14 years ago. We can nowremove a good chunk of them again for where crit_*() areno longer used.I had to adjust some files that were relying on thread2.hor headers that it includes coming in via other headersthat it was removed from.
show more ...
kernel - Make gpio and gpio_led MPSAFE* Convert to a private lock.
devfs(9): Rename DEVFS_DECLARE_CLONE_BITMAP to DEVFS_DEFINE_CLONE_BITMAP.Also, add DEVFS_DECLARE_CLONE_BITMAP() for extern declarations, analogousto MALLOC_DEFINE() and MALLOC_DECLARE().In the s
devfs(9): Rename DEVFS_DECLARE_CLONE_BITMAP to DEVFS_DEFINE_CLONE_BITMAP.Also, add DEVFS_DECLARE_CLONE_BITMAP() for extern declarations, analogousto MALLOC_DEFINE() and MALLOC_DECLARE().In the sound code, replace some externs with DEVFS_DECLARE_CLONE_BITMAP()and remove one unneeded extern.
kernel: Fix some void functions returning the results of void functions.It was found with -pedantic, since -Wreturn-type will not warn about thisas long as the calling function has a return type o
kernel: Fix some void functions returning the results of void functions.It was found with -pedantic, since -Wreturn-type will not warn about thisas long as the calling function has a return type of void, too.
gpio/dsched/devfs: Fix wrong lock checks.
kernel: Remove some unused variables in gpio/spic/cardbus/ndis.
kernel/gpio: Return EINVAL for GPIOPINUNSET and simplify a bit.
kernel: Include <sys/ioccom.h> where ioctls are defined.Not where they are used.See http://bugs.dragonflybsd.org/issues/1334
kernel/gpio: Add a missing lockmgr(...,LK_RELEASE).
LINT - clear a bunch of warnings* Clear a bunch of warnings that appear when building LINT kernel.
Remove inclusion of <sys/cdefs.h> from kernel .c files.They are not needed and mostly leftovers from former __FBSDID and thelikes.Also add some missing CVS ids to the comments.
gpio - gpio framework, initial commit* Initial commit of the new gpio framework,including a sample gpio consumer driver, gpio_led. While the framework is not directly based on OpenBSD's, some
gpio - gpio framework, initial commit* Initial commit of the new gpio framework,including a sample gpio consumer driver, gpio_led. While the framework is not directly based on OpenBSD's, some structures and other similarities have been taken over to ease porting of gpio drivers from OpenBSD.Partially-Obtained-from: OpenBSD