LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-11-2009, 06:20 PM   #1
sankarp
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
cpu hotplug


Currently the cpu hotplug (bringing the cpu to online/offline state) operations are serialized. I was trying to check the possibilities if certain things can be done in parallel here. (like if we try to bring down two processors at the same moment)

In the cpu offline path, a call is made to __stop_machine (whose description say : This causes a thread to be scheduled on every cpu, each of which disables interrupts. The result is that noone is holding a spinlock or inside any other preempt-disabled region when @fn() runs. This function assumes cpus won't come or go while it's being called. Used by hotplug cpu.) take_cpu_down (which disables the local apic, makes modifications in the ioapic redirection vector table, modifies the state of the cpu maps, sends CPU_DYING to registered callbacks and finally schedules the idle thread) is the function that gets executed in the target cpu (i.e. the cpu that goes offline) during this entire system halt state.

I am just trying to understand the main reason for using stop_machine to run take_cpu_down. What are all the main operations done that expects this state of system?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cpu fan stuck to the cpu, how do I get the cpu out? abefroman Linux - Hardware 16 09-04-2009 12:47 AM
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM
CPU Overheat Warning when opening terminal (CPU is not overheating) Virtuality Linux - Newbie 4 05-30-2007 04:10 AM
please help guys, wrong cpu speed shown with a regular non-mobile cpu !! : ( maku Linux - Hardware 1 01-02-2005 02:03 PM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration