[PATCH] Add loongarch64 native spin lock.

Поиск
Список
Период
Сортировка
От YANG Xudong
Тема [PATCH] Add loongarch64 native spin lock.
Дата
Msg-id 2d5ac8b9-f720-095a-a7a8-74b526ce83bd@ymatrix.cn
обсуждение исходный текст
Ответы Re: [PATCH] Add loongarch64 native spin lock.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

This patch set tries to add loongarch64 native spin lock to postgresql.

- [PATCH 1/2] implements a loongarch64 native spin lock.
- [PATCH 2/2] fixes s_lock_test to make it runnable via `make check'.

The patch set is tested on my Loongson 3A5000 machine with Loong Arch 
Linux and GCC 13.1.0 with default ./configure with no options.

Output of `make check' in src/backend/storage/lmgr is attached.

See:
[1]: 
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#atomic-memory-access-instructions
[2]: 

https://github.com/torvalds/linux/blob/f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6/arch/loongarch/include/asm/cmpxchg.h#L12

----
YANG Xudong
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Autogenerate some wait events code and documentation
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Add LZ4 compression in pg_dump