mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.7 (3debbf6e3uTST4qTwK-s500qgDGA7A)
domain.c, setup.c: SMP fix
This commit is contained in:
1 parent
0a26d28138
commit
73db0f0b5e
3 files changed
+6
-4
No files matched your search
@@ -1,3 +1,4 @@
|
||||
akw27@boulderdash.cl.cam.ac.uk
|
||||
kaf24@plym.cl.cam.ac.uk
|
||||
kaf24@striker.cl.cam.ac.uk
|
||||
smh22@boulderdash.cl.cam.ac.uk
|
||||
@@ -295,8 +295,6 @@ void __init start_of_day(void)
|
||||
init_bh(IMMEDIATE_BH, immediate_bh);
|
||||
init_apic_mappings(); /* make APICs addressable in our pagetables. */
|
||||
|
||||
sti();
|
||||
|
||||
#ifndef CONFIG_SMP
|
||||
APIC_init_uniprocessor();
|
||||
#else
|
||||
@@ -308,6 +306,8 @@ void __init start_of_day(void)
|
||||
*/
|
||||
#endif
|
||||
|
||||
sti();
|
||||
|
||||
zap_low_mappings();
|
||||
kmem_cache_init();
|
||||
kmem_cache_sizes_init(max_page);
|
||||
|
||||
@@ -35,6 +35,7 @@ struct task_struct *do_newdomain(void)
|
||||
{
|
||||
int retval;
|
||||
struct task_struct *p = NULL;
|
||||
unsigned long flags;
|
||||
|
||||
retval = -ENOMEM;
|
||||
p = alloc_task_struct();
|
||||
@@ -56,9 +57,9 @@ struct task_struct *do_newdomain(void)
|
||||
p->blk_ring_base = (blk_ring_t *)(p->shared_info + 1);
|
||||
p->net_ring_base = (net_ring_t *)(p->blk_ring_base + 1);
|
||||
p->pg_head = p->tot_pages = 0;
|
||||
write_lock_irq(&tasklist_lock);
|
||||
write_lock_irqsave(&tasklist_lock, flags);
|
||||
SET_LINKS(p);
|
||||
write_unlock_irq(&tasklist_lock);
|
||||
write_unlock_irqrestore(&tasklist_lock, flags);
|
||||
|
||||
newdomain_out:
|
||||
return(p);
|
||||
|
||||