-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sched/cputime' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/frederic/linux-dynticks into sched/core Pull cputime changes from Frederic Weisbecker: * Generalize exception handling * Fix race in context tracking state restore on return from exception and irq exit kernel preemption * Fix cputime scaling in full dynticks accounting dynamic off-case * Fix default Kconfig value Signed-off-by: Ingo Molnar <mingo@kernel.org>
- Loading branch information
Showing
10 changed files
with
163 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
#ifndef _ASM_X86_CONTEXT_TRACKING_H | ||
#define _ASM_X86_CONTEXT_TRACKING_H | ||
|
||
#ifndef __ASSEMBLY__ | ||
#include <linux/context_tracking.h> | ||
#include <asm/ptrace.h> | ||
|
||
static inline void exception_enter(struct pt_regs *regs) | ||
{ | ||
user_exit(); | ||
} | ||
|
||
static inline void exception_exit(struct pt_regs *regs) | ||
{ | ||
#ifdef CONFIG_CONTEXT_TRACKING | ||
if (user_mode(regs)) | ||
user_enter(); | ||
#endif | ||
} | ||
|
||
#else /* __ASSEMBLY__ */ | ||
|
||
#ifdef CONFIG_CONTEXT_TRACKING | ||
# define SCHEDULE_USER call schedule_user | ||
#else | ||
# define SCHEDULE_USER call schedule | ||
#endif | ||
|
||
#endif /* !__ASSEMBLY__ */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.