Mike Travis wrote:Why not use the real pda for all cpus? Do you move the boot-cpu's per-cpu data? (Please don't) If not, you can just use percpu__pda from the start without having to do anything else, and then set up %gs pointing to the pda base for each secondary cpu. 64-bit inherits 32-bit's use of per-cpu gdts, though its mostly useless on 64-bit. More important is to have a: startup_percpu_base: .quad __per_cpu_load which you stick the processor's initial %gs into, and then load that from in startup_secondary_64: mov $X86_MSR_GSBASE, %ecx mov startup_percpu_base, %eax mov startup_percpu_base+4, %edx wrmsr and put startup_percpu_base = new_cpus_percpu_base; in do_cpu_boot(). Don't think so. If you want something to happen only at boot time, do it in startup_64. As I mentioned in my other mail, a simple add should be enough. Right, do it in startup_64. It should be possible to share almost everything, at least in C. J --
| Mark Lord | 2.6.25-rc8: FTP transfer errors |
| Kamalesh Babulal | Re: 2.6.23-rc6-mm1 |
| Greg Kroah-Hartman | [PATCH 025/196] paride: Convert from class_device to device for block/paride |
| Stephen Rothwell | Announce: Linux-next (Or Andrew's dream :-)) |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
