]> git.baikalelectronics.ru Git - kernel.git/commit
sched/wait: Split out the wait_bit*() APIs from <linux/wait.h> into <linux/wait_bit.h>
authorIngo Molnar <mingo@kernel.org>
Tue, 20 Jun 2017 10:19:09 +0000 (12:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 20 Jun 2017 10:19:09 +0000 (12:19 +0200)
commite8306f8543b13eb8b6381c9bf25a5729611c99a4
tree8fd9fc956274bf3b64b4ec736cdb38d9ba9bf6c3
parentf509548b72d91bd7eaa0cb797551c5a683d06063
sched/wait: Split out the wait_bit*() APIs from <linux/wait.h> into <linux/wait_bit.h>

The wait_bit*() types and APIs are mixed into wait.h, but they
are a pretty orthogonal extension of wait-queues.

Furthermore, only about 50 kernel files use these APIs, while
over 1000 use the regular wait-queue functionality.

So clean up the main wait.h by moving the wait-bit functionality
out of it, into a separate .h and .c file:

  include/linux/wait_bit.h  for types and APIs
  kernel/sched/wait_bit.c   for the implementation

Update all header dependencies.

This reduces the size of wait.h rather significantly, by about 30%.

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/cachefiles/internal.h
fs/cifs/inode.c
fs/nfs/internal.h
include/linux/fs.h
include/linux/sunrpc/sched.h
include/linux/wait.h
include/linux/wait_bit.h [new file with mode: 0644]
kernel/sched/Makefile
kernel/sched/wait.c
kernel/sched/wait_bit.c [new file with mode: 0644]
security/keys/internal.h