public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Coywolf Qi Hunt <coywolf@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: zwane@arm.linux.org.uk, linux-kernel@vger.kernel.org, ak@muc.de,
	bunk@stusta.de, Li Shaohua <shaohua.li@intel.com>
Subject: Re: 2.6.12-rc3-mm1
Date: Sun, 1 May 2005 04:01:11 +0800	[thread overview]
Message-ID: <2cd57c9005043013017ecd8a5d@mail.gmail.com> (raw)
In-Reply-To: <20050430124611.54b5ab15.akpm@osdl.org>

On 5/1/05, Andrew Morton <akpm@osdl.org> wrote:
> 
> Thanks, guys.  I seem to have it limping along on UP now, partly with the
> below.
> 
> Li, it's a bit awkward to be calling things by hand on SMP and with an
> initcall on UP.  Maybe something neater can be done there.
> 
> I quickly tested suspend/resume on UP.  Appears to work.

Yes, this seems also fixe the compile warning:

  CC      arch/i386/power/cpu.o
/home/coywolf/2.6.12-rc3-mm1-cy2/arch/i386/power/cpu.c: In function
`__restore_processor_state':
/home/coywolf/2.6.12-rc3-mm1-cy2/arch/i386/power/cpu.c:137: warning:
implicit declaration of function `enable_sep_cpu'
  LD      arch/i386/power/built-in.o

I was trying to fix it too. You are quicker and better than me.


> 
>  arch/i386/kernel/sysenter.c  |   10 ++++++++++
>  arch/i386/power/cpu.c        |    2 ++
>  include/asm-i386/processor.h |    1 +
>  include/asm-i386/smp.h       |    1 -
>  4 files changed, 13 insertions(+), 1 deletion(-)
> 
> diff -puN arch/i386/kernel/sysenter.c~sep-initializing-rework-fix arch/i386/kernel/sysenter.c
> --- 25/arch/i386/kernel/sysenter.c~sep-initializing-rework-fix  2005-04-30 12:20:20.370077048 -0700
> +++ 25-akpm/arch/i386/kernel/sysenter.c 2005-04-30 12:20:20.375076288 -0700
> @@ -65,3 +65,13 @@ int __init sysenter_setup(void)
> 
>         return 0;
>  }
> +
> +#ifndef CONFIG_SMP
> +static int __init sysenter_sep_setup(void)
> +{
> +       sysenter_setup();
> +       enable_sep_cpu();
> +       return 0;
> +}
> +module_init(sysenter_sep_setup);
> +#endif
> diff -puN arch/i386/power/cpu.c~sep-initializing-rework-fix arch/i386/power/cpu.c
> --- 25/arch/i386/power/cpu.c~sep-initializing-rework-fix        2005-04-30 12:20:20.371076896 -0700
> +++ 25-akpm/arch/i386/power/cpu.c       2005-04-30 12:20:35.890717552 -0700
> @@ -22,9 +22,11 @@
>  #include <linux/device.h>
>  #include <linux/suspend.h>
>  #include <linux/acpi.h>
> +
>  #include <asm/uaccess.h>
>  #include <asm/acpi.h>
>  #include <asm/tlbflush.h>
> +#include <asm/processor.h>
> 
>  static struct saved_context saved_context;
> 
> diff -puN include/asm-i386/processor.h~sep-initializing-rework-fix include/asm-i386/processor.h
> --- 25/include/asm-i386/processor.h~sep-initializing-rework-fix 2005-04-30 12:20:41.633844464 -0700
> +++ 25-akpm/include/asm-i386/processor.h        2005-04-30 12:21:04.316396192 -0700
> @@ -691,5 +691,6 @@ extern void select_idle_routine(const st
>  #define cache_line_size() (boot_cpu_data.x86_cache_alignment)
> 
>  extern unsigned long boot_option_idle_override;
> +extern void enable_sep_cpu(void);
> 
>  #endif /* __ASM_I386_PROCESSOR_H */
> diff -puN include/asm-i386/smp.h~sep-initializing-rework-fix include/asm-i386/smp.h
> --- 25/include/asm-i386/smp.h~sep-initializing-rework-fix       2005-04-30 12:20:45.463262304 -0700
> +++ 25-akpm/include/asm-i386/smp.h      2005-04-30 12:20:53.140095248 -0700
> @@ -38,7 +38,6 @@ 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);
> _
> 
> 


-- 
Coywolf Qi Hunt
http://sosdg.org/~coywolf/

  reply	other threads:[~2005-04-30 20:01 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-30  6:16 2.6.12-rc3-mm1 Andrew Morton
2005-04-30  9:40 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:30 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:38   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:10 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 11:26   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:52 ` [-mm patch] SIS900 must select MII Adrian Bunk
2005-05-01 16:43   ` Daniele Venzano
2005-05-15 22:24   ` Jeff Garzik
2005-04-30 12:27 ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 22:08   ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-04-30 22:36   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 22:51     ` 2.6.12-rc3-mm1 Jesper Juhl
2005-04-30 22:53     ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 23:05       ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 23:10         ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-01 13:09           ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-05-01 13:30             ` 2.6.12-rc3-mm1 Adrian Bunk
2005-05-02 15:28               ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 15:49                 ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 16:11                   ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 22:20                     ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-02 22:39                       ` 2.6.12-rc3-mm1 Olivier Galibert
2005-05-03  0:34                       ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 22:41                 ` 2.6.12-rc3-mm1 Frank Sorenson
2005-05-03 16:02                   ` 2.6.12-rc3-mm1 Bill Davidsen
2005-05-01 13:19       ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 12:46 ` 2.6.12-rc3-mm1 doesn't boot Adrian Bunk
2005-04-30 12:57   ` Carlos Martin
2005-04-30 13:25 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 13:50   ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 14:07 ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 15:04   ` 2.6.12-rc3-mm1 Russell King
2005-04-30 19:49   ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 22:03     ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 14:20 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 16:43   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 17:05     ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:08       ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:56         ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 19:46         ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 20:01           ` Coywolf Qi Hunt [this message]
2005-05-08  3:53           ` 2.6.12-rc3-mm1 Li Shaohua
2005-04-30 18:30   ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:58     ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 15:29 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 15:39   ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:44     ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 16:02       ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:48     ` 2.6.12-rc3-mm1 Carlos Martin
2005-04-30 15:48     ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 23:34 ` 2.6.12-rc3-mm1 (a-new-10gb-ethernet-driver-by-chelsio-communications.patch) Alexey Dobriyan
  -- strict thread matches above, loose matches on Subject: below --
2005-05-01  8:49 2.6.12-rc3-mm1 Li, Shaohua
     [not found] <fa.gbejpad.1vj8f9r@ifi.uio.no>
2005-05-03  9:00 ` 2.6.12-rc3-mm1 Reuben Farrelly
2005-05-03  9:07   ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-03  9:49     ` 2.6.12-rc3-mm1 Reuben Farrelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2cd57c9005043013017ecd8a5d@mail.gmail.com \
    --to=coywolf@gmail.com \
    --cc=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=bunk@stusta.de \
    --cc=coywolf@lovecn.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaohua.li@intel.com \
    --cc=zwane@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox