On 4/12/05, Li Shaohua <[email protected]> wrote:
> Hi,
> These patches (together with 5 patches followed this one) are updated
> suspend/resume SMP patches. The patches fixed some bugs and do clean up
> as suggested. Now they work for both suspend-to-ram and suspend-to-disk.
> Patches are against 2.6.12-rc2-mm3.
>
> Thanks,
> Shaohua
>
> ---
> Make SEP init per-cpu, so it is hotplug safed.
>
> Signed-off-by: Li Shaohua<[email protected]>
>
> ---
> +++ linux-2.6.11-root/arch/i386/power/cpu.c 2005-04-12 10:36:00.175169792 +0800
> @@ -33,8 +33,6 @@ unsigned long saved_context_esp, saved_c
> unsigned long saved_context_esi, saved_context_edi;
> unsigned long saved_context_eflags;
>
> -extern void enable_sep_cpu(void *);
> -
> void __save_processor_state(struct saved_context *ctxt)
> {
> kernel_fpu_begin();
> diff -puN include/asm-i386/smp.h~sep_init_cleanup include/asm-i386/smp.h
> --- linux-2.6.11/include/asm-i386/smp.h~sep_init_cleanup 2005-04-12 10:36:00.170170552 +0800
> +++ linux-2.6.11-root/include/asm-i386/smp.h 2005-04-12 10:36:00.176169640 +0800
> @@ -37,6 +37,9 @@ extern int smp_num_siblings;
> extern cpumask_t cpu_sibling_map[];
> extern cpumask_t cpu_core_map[];
>
> +extern int sysenter_setup(void);
> +extern void enable_sep_cpu(void);
> +
> extern void smp_flush_tlb(void);
> extern void smp_message_irq(int cpl, void *dev_id, struct pt_regs *regs);
> extern void smp_invalidate_rcv(void); /* Process an NMI */
> _
This change adds a warning when CONFIG_SMP is not set:
arch/i386/power/cpu.c: In function '__restore_processor_state':
arch/i386/power/cpu.c:137: warning: implicit declaration of function
'enable_sep_cpu'
Maybe those functions should be defined somewhere else.
regards,
Benoit
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]