public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Hot swap CPU support for 2.4.1
@ 2001-02-05  4:51 Frank Davis
  2001-02-05  6:54 ` Rusty Russell
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Davis @ 2001-02-05  4:51 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-kernel

Hello,
   Which archs still need to implement it? I briefly looked over the patch and noticed that it had i386, ppc, mips64, and s390 already there.
Regards,
Frank

>Hi all,
>
>I did the infrastructure, Anton did the bugfinding and PPC >support,
>aka. the hard stuff.  Other architectures need to implement
>__cpu_disable, __cpu_die and __cpu_up for them to work.  >Volunteers
>appreciated.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH] Hot swap CPU support for 2.4.1
@ 2001-02-05  4:00 Rusty Russell
  2001-02-05  5:50 ` Lars Marowsky-Bree
  2001-02-10 23:29 ` Pavel Machek
  0 siblings, 2 replies; 7+ messages in thread
From: Rusty Russell @ 2001-02-05  4:00 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

Hi all,

I did the infrastructure, Anton did the bugfinding and PPC support,
aka. the hard stuff.  Other architectures need to implement
__cpu_disable, __cpu_die and __cpu_up for them to work.  Volunteers
appreciated.

	This patch allows you to down & up CPUs as follows:
	# echo 0 > /proc/sys/cpu/0/online
	# echo 1 > /proc/sys/cpu/0/online

The relatively trivial patch works as follows:

1) Implements synchronize_kernel() (thanks Andi Kleen for forwarding
   Paul McKenney's quiescent-state ideas) which waits for a schedule
   on all CPUs.
2) All CPU numbers are now physical: removes cpu_number_map,
   cpu_logical_map and smp_num_cpus.
3) Adds cpu_online(cpu) and cpu_num_online() macros.
4) Adds cpu_down() and cpu_up() calls, which call arch-specific
   __cpu_disable(cpu), __cpu_die(cpu) and __cpu_up(cpu).
5) Fixes schedule() to check allowed_cpus even if rescheduling same
   task.

Since it's 60k long, mime attached bzip2.

Go hack!
Rusty Russell & Anton Blanchard
--

[-- Attachment #2: hotswap CPU patch --]
[-- Type: application/octet-stream, Size: 13894 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-02-11 23:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-05  4:51 [PATCH] Hot swap CPU support for 2.4.1 Frank Davis
2001-02-05  6:54 ` Rusty Russell
  -- strict thread matches above, loose matches on Subject: below --
2001-02-05  4:00 Rusty Russell
2001-02-05  5:50 ` Lars Marowsky-Bree
2001-02-05  6:06   ` Anton Blanchard
2001-02-10 23:29 ` Pavel Machek
2001-02-11 23:05   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox