diff options
author | 2020-04-21 09:36:03 -0700 | |
---|---|---|
committer | 2020-04-21 09:36:03 -0700 | |
commit | 175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3 (patch) | |
tree | c7fd682de61e3c2a6cc3ba0e8881b99fafdf969c /include/linux/kernel.h | |
parent | ARM: dts: OMAP3: disable RNG on N950/N9 (diff) | |
parent | ARM: dts: dra7: Fix bus_dma_limit for PCIe (diff) | |
download | wireguard-linux-175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3.tar.xz wireguard-linux-175ae3ad59ab3459652bd2ae3bbc1785aeba1bf3.zip |
Merge branch 'fixes-v5.7' into fixes
Diffstat (limited to '')
-rw-r--r-- | include/linux/kernel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 0d9db2a14f44..9b7a8d74a9d6 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -257,6 +257,13 @@ extern void __cant_sleep(const char *file, int line, int preempt_offset); #define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) +#ifndef CONFIG_PREEMPT_RT +# define cant_migrate() cant_sleep() +#else + /* Placeholder for now */ +# define cant_migrate() do { } while (0) +#endif + /** * abs - return absolute value of an argument * @x: the value. If it is unsigned type, it is converted to signed type first. |