On Fri, 18 Apr 2025 16:09:28 +0200, Jerome Forissier wrote: > This series introduces threads and uses them to improve the performance > of the USB bus scanning code and to implement background jobs in the > shell via two new commands: 'spawn' and 'wait'. > > The threading framework is called 'uthread' and is inspired from the > barebox threads [2]. setjmp() and longjmp() are used to save and > restore contexts, as well as a non-standard extension called initjmp(). > This new function is added in several patches, one for each > architecture that supports HAVE_SETJMP. A new symbol is defined: > HAVE_INITJMP. Two tests, one for initjmp() and one for the uthread > scheduling, are added to the lib suite. > > [...]
Applied to u-boot/master, thanks! [01/17] arch: introduce initjmp() and Kconfig symbol HAVE_INITJMP commit: 1c8e166fb5eb5c58b79a09e80660a7ebfc7c94fa [02/17] arm: add initjmp() commit: 0245d2ab7d08cd360d44f131b20aa817799a4394 [03/17] riscv: add initjmp() commit: 3691328ef69555148962654e7f834fd0b5273fcb [04/17] sandbox: add initjmp() commit: a27844cc9443341ffe1314ccc4c384a54ad1ae32 [05/17] test: lib: add initjmp() test commit: b989f9ed9fe13be2cb168d2d45c235f011104f38 [06/17] uthread: add cooperative multi-tasking interface commit: f9384796179abcc7e5796815c79b2137f5f83b12 [07/17] uthread: add uthread_mutex commit: b01735b448bfdd39bb0b0f8f28db149d8a088e55 [08/17] cyclic: invoke uthread_schedule() from schedule() commit: e831370af5102d8059d4f20d3317e2c39565e9af [09/17] lib: time: hook uthread_schedule() into udelay() commit: 2325621fff219ee3b80641f714545f8b33013c0c [10/17] test: lib: add uthread test commit: 67b1b1ae197f6ab12e2bcf7ab0b995f671779745 [11/17] test: lib: add uthread_mutex test commit: dbb22f541a0a34d0e5889a03db180414aac90f9f [12/17] dm: usb: move bus initialization into new static function usb_init_bus() commit: 4634346e3eb8f3f4ea0505f4f0a14182b2ad60f3 [13/17] dm: usb: initialize and scan multiple buses simultaneously with uthread commit: 1c0f6999b5589315201ebb5aa659eb6658079b8e [14/17] cmd: add spawn and wait commands commit: ec89a4f7a3cbdfe601a45c110b375e925190f095 [15/17] test: cmd: add test for spawn and wait commands commit: 82bbd95fa92e4f3d75c9dbced3e1b07b11241e48 [16/17] MAINTAINERS: add UTHREAD commit: 10536ca4f6eb7cb8968001142b2598e03f72f723 [17/17] configs: qemu: enable UTHREAD and CMD_SPAWN in various defconfigs commit: 1717f46a1da7f15e749405da2178944c3a76fac0 -- Tom