Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140446
b: refs/heads/master
c: 3de46fd
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Apr 2, 2009
1 parent b92ba7e commit 549dbd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb12ce60c81826a99eadbc56401e08ceb37a0cc2
refs/heads/master: 3de46fda4c104deef17ec70f85361f5c6b84ce0e
14 changes: 0 additions & 14 deletions trunk/arch/x86/kernel/setup_percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static struct page * __init pcpur_get_page(unsigned int cpu, int pageno)
static ssize_t __init setup_pcpu_remap(size_t static_size)
{
static struct vm_struct vm;
pg_data_t *last;
size_t ptrs_size, dyn_size;
unsigned int cpu;
ssize_t ret;
Expand All @@ -165,19 +164,6 @@ static ssize_t __init setup_pcpu_remap(size_t static_size)
if (!cpu_has_pse || !pcpu_need_numa())
return -EINVAL;

last = NULL;
for_each_possible_cpu(cpu) {
int node = early_cpu_to_node(cpu);

if (node_online(node) && NODE_DATA(node) &&
last && last != NODE_DATA(node))
goto proceed;

last = NODE_DATA(node);
}
return -EINVAL;

proceed:
/*
* Currently supports only single page. Supporting multiple
* pages won't be too difficult if it ever becomes necessary.
Expand Down

0 comments on commit 549dbd5

Please sign in to comment.