Hello,
Thanks for this! Just a few comments.
Damien Zammit, le dim. 17 sept. 2023 01:15:14 +, a ecrit:
> +#define SMP_COMPLETE (-1)
> +#define MY(stm) %gs:PERCPU_##stm
> +
> #if NCPUS > 1
>
> #ifdef __i386__
> @@ -63,14 +66,27 @@
> movl%esi, reg ;\
> po
This speeds up smp again, by storing the struct processor
in a percpu area and avoiding an expensive cpu_number every call
of current_processor(), as well as getting the cpu_number by
an offset into the percpu area. Untested on 64 bit
and work remains to use other percpu arrays.
TESTED: on -smp 4