projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
serial: sh-sci: fix compilation breakage, when DMA is enabled
[linux-2.6-microblaze.git]
/
mm
/
mempolicy.c
diff --git
a/mm/mempolicy.c
b/mm/mempolicy.c
index
1d771e4
..
bd92431
100644
(file)
--- a/
mm/mempolicy.c
+++ b/
mm/mempolicy.c
@@
-1602,8
+1602,14
@@
static unsigned interleave_nodes(struct mempolicy *policy)
* task can change it's policy. The system default policy requires no
* such protection.
*/
* task can change it's policy. The system default policy requires no
* such protection.
*/
-unsigned slab_node(
struct mempolicy *policy
)
+unsigned slab_node(
void
)
{
{
+ struct mempolicy *policy;
+
+ if (in_interrupt())
+ return numa_node_id();
+
+ policy = current->mempolicy;
if (!policy || policy->flags & MPOL_F_LOCAL)
return numa_node_id();
if (!policy || policy->flags & MPOL_F_LOCAL)
return numa_node_id();