On 16/8/24 15:22, Peter Maydell wrote:
Currently the QemuLockCnt data structure and associated functions are
in the include/qemu/thread.h header.  Move them to their own
qemu/lockcnt.h.  The main reason for doing this is that it means we
can autogenerate the documentation comments into the docs/devel
documentation.

The copyright/author in the new header is drawn from lockcnt.c,
since the header changes were added in the same commit as
lockcnt.c; since neither thread.h nor lockcnt.c state an explicit
license, the standard default of GPL-2-or-later applies.

We include the new header (and the .c file, which was accidentally
omitted previously) in the "RCU" part of MAINTAINERS, since that
is where the lockcnt.rst documentation is categorized.

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
Paolo: could you confirm that you meant GPL2+ for this code?
---
  MAINTAINERS            |   2 +
  docs/devel/lockcnt.rst |   2 +-
  include/block/aio.h    |   1 +
  include/hw/core/cpu.h  |   1 +
  include/qemu/lockcnt.h | 130 +++++++++++++++++++++++++++++++++++++++++
  include/qemu/thread.h  | 111 -----------------------------------
  accel/accel-blocker.c  |   1 +
  hw/core/cpu-common.c   |   1 +
  util/aio-posix.c       |   1 +
  util/aio-win32.c       |   1 +
  util/async.c           |   1 +
  util/fdmon-epoll.c     |   1 +
  util/lockcnt.c         |   1 +
  13 files changed, 142 insertions(+), 112 deletions(-)
  create mode 100644 include/qemu/lockcnt.h

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to