diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/context_tracking.h | |
parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date: Thu Nov 5 23:04:11 2015 +0200
drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/context_tracking.h')
-rw-r--r-- | include/linux/context_tracking.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h index 008fc67d0d96..68b575afe5f5 100644 --- a/include/linux/context_tracking.h +++ b/include/linux/context_tracking.h | |||
@@ -10,6 +10,10 @@ | |||
10 | #ifdef CONFIG_CONTEXT_TRACKING | 10 | #ifdef CONFIG_CONTEXT_TRACKING |
11 | extern void context_tracking_cpu_set(int cpu); | 11 | extern void context_tracking_cpu_set(int cpu); |
12 | 12 | ||
13 | /* Called with interrupts disabled. */ | ||
14 | extern void __context_tracking_enter(enum ctx_state state); | ||
15 | extern void __context_tracking_exit(enum ctx_state state); | ||
16 | |||
13 | extern void context_tracking_enter(enum ctx_state state); | 17 | extern void context_tracking_enter(enum ctx_state state); |
14 | extern void context_tracking_exit(enum ctx_state state); | 18 | extern void context_tracking_exit(enum ctx_state state); |
15 | extern void context_tracking_user_enter(void); | 19 | extern void context_tracking_user_enter(void); |
@@ -18,13 +22,13 @@ extern void context_tracking_user_exit(void); | |||
18 | static inline void user_enter(void) | 22 | static inline void user_enter(void) |
19 | { | 23 | { |
20 | if (context_tracking_is_enabled()) | 24 | if (context_tracking_is_enabled()) |
21 | context_tracking_user_enter(); | 25 | context_tracking_enter(CONTEXT_USER); |
22 | 26 | ||
23 | } | 27 | } |
24 | static inline void user_exit(void) | 28 | static inline void user_exit(void) |
25 | { | 29 | { |
26 | if (context_tracking_is_enabled()) | 30 | if (context_tracking_is_enabled()) |
27 | context_tracking_user_exit(); | 31 | context_tracking_exit(CONTEXT_USER); |
28 | } | 32 | } |
29 | 33 | ||
30 | static inline enum ctx_state exception_enter(void) | 34 | static inline enum ctx_state exception_enter(void) |
@@ -88,13 +92,13 @@ static inline void guest_enter(void) | |||
88 | current->flags |= PF_VCPU; | 92 | current->flags |= PF_VCPU; |
89 | 93 | ||
90 | if (context_tracking_is_enabled()) | 94 | if (context_tracking_is_enabled()) |
91 | context_tracking_enter(CONTEXT_GUEST); | 95 | __context_tracking_enter(CONTEXT_GUEST); |
92 | } | 96 | } |
93 | 97 | ||
94 | static inline void guest_exit(void) | 98 | static inline void guest_exit(void) |
95 | { | 99 | { |
96 | if (context_tracking_is_enabled()) | 100 | if (context_tracking_is_enabled()) |
97 | context_tracking_exit(CONTEXT_GUEST); | 101 | __context_tracking_exit(CONTEXT_GUEST); |
98 | 102 | ||
99 | if (vtime_accounting_enabled()) | 103 | if (vtime_accounting_enabled()) |
100 | vtime_guest_exit(current); | 104 | vtime_guest_exit(current); |