-
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.
yaml --- r: 31704 b: refs/heads/master c: ae95bfb h: refs/heads/master v: v3
- Loading branch information
Lennert Buytenhek
authored and
Russell King
committed
Jul 1, 2006
1 parent
d5bd09f
commit e838829
Showing
7 changed files
with
80 additions
and
26 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,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 9b8417556cca8d56467fd47a39667a4cf3ae21f3 | ||
refs/heads/master: ae95bfbb2b67eba5d67a0478a8715682a87e2616 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* linux/arch/arm/kernel/iwmmxt-notifier.c | ||
* | ||
* XScale iWMMXt (Concan) context switching and handling | ||
* | ||
* Initial code: | ||
* Copyright (c) 2003, Intel Corporation | ||
* | ||
* Full lazy switching support, optimizations and more, by Nicolas Pitre | ||
* Copyright (c) 2003-2004, MontaVista Software, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/config.h> | ||
#include <linux/types.h> | ||
#include <linux/kernel.h> | ||
#include <linux/signal.h> | ||
#include <linux/sched.h> | ||
#include <linux/init.h> | ||
#include <asm/thread_notify.h> | ||
#include <asm/io.h> | ||
|
||
static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t) | ||
{ | ||
struct thread_info *thread = t; | ||
|
||
switch (cmd) { | ||
case THREAD_NOTIFY_FLUSH: | ||
/* | ||
* flush_thread() zeroes thread->fpstate, so no need | ||
* to do anything here. | ||
* | ||
* FALLTHROUGH: Ensure we don't try to overwrite our newly | ||
* initialised state information on the first fault. | ||
*/ | ||
|
||
case THREAD_NOTIFY_RELEASE: | ||
iwmmxt_task_release(thread); | ||
break; | ||
|
||
case THREAD_NOTIFY_SWITCH: | ||
iwmmxt_task_switch(thread); | ||
break; | ||
} | ||
|
||
return NOTIFY_DONE; | ||
} | ||
|
||
static struct notifier_block iwmmxt_notifier_block = { | ||
.notifier_call = iwmmxt_do, | ||
}; | ||
|
||
static int __init iwmmxt_init(void) | ||
{ | ||
thread_register_notifier(&iwmmxt_notifier_block); | ||
|
||
return 0; | ||
} | ||
|
||
late_initcall(iwmmxt_init); |
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