FROMLIST: refactor header includes to allow kthread.h inclusion in psi_types.h
authorSuren Baghdasaryan <surenb@google.com>
Sun, 17 Feb 2019 23:07:38 +0000 (15:07 -0800)
committerwangwang <wangwang1@lenovo.com>
Wed, 13 Nov 2019 02:38:37 +0000 (10:38 +0800)
commitf9814bf01c652fc83746b00db57ed3a1eaf651e9
tree891798edec1bfa1364946bb86edf9c398f4e373f
parent4fa74cbd6d23955c6c6f6c10da2fd9e270fc29de
FROMLIST: refactor header includes to allow kthread.h inclusion in psi_types.h

kthread.h can't be included in psi_types.h because it creates a circular
inclusion with kthread.h eventually including psi_types.h and complaining
on kthread structures not being Defenderined because they are Defenderined further
in the kthread.h. Resolve this by removing psi_types.h inclusion from the
headers included from kthread.h.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(not upstream yet, latest version published at: https://lore.kernel.org/patchwork/patch/1052417/)

Conflicts:
        include/linux/kthread.h
        kernel/kthread.c

(1. <linux/cgroup.h> include is already missing in kthread.h
2. <linux/cgroup.h> is already included in kthread.c)

Bug: 127712811
Bug: 129157727
Test: lmkd in PSI mode
Change-Id: I07c1f4fddf0c43b3095f505e062d9d179d041544
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
include/linux/sched.h