diff options
| author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 05:33:03 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 08:44:55 -0400 |
| commit | 64131a87f2aae2ed9e05d8227c5b009ca6c50d98 (patch) | |
| tree | fdea23fd59216120bf54a48c60ca24489a733f14 /include/linux/context_tracking_state.h | |
| parent | 676ee36be04985062522804c2de04f0764212be6 (diff) | |
| parent | 2c33ce009ca2389dbf0535d0672214d09738e35e (diff) | |
Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus
* 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux: (9717 commits)
media-bus: Fixup RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus format
hexdump: avoid warning in test function
fs: take i_mutex during prepare_binprm for set[ug]id executables
smp: Fix error case handling in smp_call_function_*()
iommu-common: Fix PARISC compile-time warnings
sparc: Make LDC use common iommu poll management functions
sparc: Make sparc64 use scalable lib/iommu-common.c functions
Break up monolithic iommu table/lock into finer graularity pools and lock
sparc: Revert generic IOMMU allocator.
tools/power turbostat: correct dumped pkg-cstate-limit value
tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL
tools/power turbostat: correct DRAM RAPL units on recent Xeon processors
tools/power turbostat: Initial Skylake support
tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
tools/power turbostat: modprobe msr, if needed
tools/power turbostat: dump MSR_TURBO_RATIO_LIMIT2
tools/power turbostat: use new MSR_TURBO_RATIO_LIMIT names
Bluetooth: hidp: Fix regression with older userspace and flags validation
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
perf/x86/intel/pt: Fix and clean up error handling in pt_event_add()
...
That solves several merge conflicts:
Documentation/DocBook/media/v4l/subdev-formats.xml
Documentation/devicetree/bindings/vendor-prefixes.txt
drivers/staging/media/mn88473/mn88473.c
include/linux/kconfig.h
include/uapi/linux/media-bus-format.h
The ones at subdev-formats.xml and media-bus-format.h are not trivial.
That's why we opted to merge from DRM.
Diffstat (limited to 'include/linux/context_tracking_state.h')
| -rw-r--r-- | include/linux/context_tracking_state.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/context_tracking_state.h b/include/linux/context_tracking_state.h index 97a81225d037..6b7b96a32b75 100644 --- a/include/linux/context_tracking_state.h +++ b/include/linux/context_tracking_state.h | |||
| @@ -13,8 +13,9 @@ struct context_tracking { | |||
| 13 | */ | 13 | */ |
| 14 | bool active; | 14 | bool active; |
| 15 | enum ctx_state { | 15 | enum ctx_state { |
| 16 | IN_KERNEL = 0, | 16 | CONTEXT_KERNEL = 0, |
| 17 | IN_USER, | 17 | CONTEXT_USER, |
| 18 | CONTEXT_GUEST, | ||
| 18 | } state; | 19 | } state; |
| 19 | }; | 20 | }; |
| 20 | 21 | ||
| @@ -34,11 +35,13 @@ static inline bool context_tracking_cpu_is_enabled(void) | |||
| 34 | 35 | ||
| 35 | static inline bool context_tracking_in_user(void) | 36 | static inline bool context_tracking_in_user(void) |
| 36 | { | 37 | { |
| 37 | return __this_cpu_read(context_tracking.state) == IN_USER; | 38 | return __this_cpu_read(context_tracking.state) == CONTEXT_USER; |
| 38 | } | 39 | } |
| 39 | #else | 40 | #else |
| 40 | static inline bool context_tracking_in_user(void) { return false; } | 41 | static inline bool context_tracking_in_user(void) { return false; } |
| 41 | static inline bool context_tracking_active(void) { return false; } | 42 | static inline bool context_tracking_active(void) { return false; } |
| 43 | static inline bool context_tracking_is_enabled(void) { return false; } | ||
| 44 | static inline bool context_tracking_cpu_is_enabled(void) { return false; } | ||
| 42 | #endif /* CONFIG_CONTEXT_TRACKING */ | 45 | #endif /* CONFIG_CONTEXT_TRACKING */ |
| 43 | 46 | ||
| 44 | #endif | 47 | #endif |
