diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2011-04-06 17:16:29 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-04-10 22:13:36 +0200 |
commit | 2e82669acf03e5bf2080f5d3ef005168e67d8a51 (patch) | |
tree | 996ff5ce7127725a0b8ddeeb74731d6bb7288cdc /arch/arm/kernel | |
parent | ARM: 6866/1: Do not restrict HIGHPTE to !OUTER_CACHE (diff) | |
download | linux-2e82669acf03e5bf2080f5d3ef005168e67d8a51.tar.xz linux-2e82669acf03e5bf2080f5d3ef005168e67d8a51.zip |
ARM: 6867/1: Introduce THREAD_NOTIFY_COPY for copy_thread() hooks
This patch adds THREAD_NOTIFY_COPY for calling registered handlers
during the copy_thread() function call. It also changes the VFP handler
to use a switch statement rather than if..else and ignore this event.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 94bbedbed639..5e1e54197227 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -372,6 +372,8 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start, if (clone_flags & CLONE_SETTLS) thread->tp_value = regs->ARM_r3; + thread_notify(THREAD_NOTIFY_COPY, thread); + return 0; } |