Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311895 Details for
Bug 455430
x86: use cpu_online()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
RHEL5 fix for this issue
455430.patch (text/plain), 1.58 KB, created by
Prarit Bhargava
on 2008-07-15 23:54:30 UTC
(
hide
)
Description:
RHEL5 fix for this issue
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2008-07-15 23:54:30 UTC
Size:
1.58 KB
patch
obsolete
>Backport of 6107a7c4e2a871c37bb6c49e5e8286079f0968f9 > > x86: use cpu_online() > > Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> > Signed-off-by: Ingo Molnar <mingo@elte.hu> > >Successfully tested by me. > >Resolves BZ 455430 > >diff -urNp -X linux-2.6.18.i386/Documentation/dontdiff linux-2.6.18.i386.orig/arch/i386/kernel/reboot.c linux-2.6.18.i386/arch/i386/kernel/reboot.c >--- linux-2.6.18.i386.orig/arch/i386/kernel/reboot.c 2008-07-15 15:53:21.000000000 -0400 >+++ linux-2.6.18.i386/arch/i386/kernel/reboot.c 2008-07-15 19:33:57.000000000 -0400 >@@ -293,12 +293,12 @@ void machine_shutdown(void) > > /* See if there has been given a command line override */ > if ((reboot_cpu != -1) && (reboot_cpu < NR_CPUS) && >- cpu_isset(reboot_cpu, cpu_online_map)) { >+ cpu_online(reboot_cpu_id)) { > reboot_cpu_id = reboot_cpu; > } > > /* Make certain the cpu I'm rebooting on is online */ >- if (!cpu_isset(reboot_cpu_id, cpu_online_map)) { >+ if (cpu_online(reboot_cpu_id)) { > reboot_cpu_id = smp_processor_id(); > } > >diff -urNp -X linux-2.6.18.x86_64/Documentation/dontdiff linux-2.6.18.x86_64.orig/arch/x86_64/kernel/reboot.c linux-2.6.18.x86_64/arch/x86_64/kernel/reboot.c >--- linux-2.6.18.x86_64.orig/arch/x86_64/kernel/reboot.c 2008-07-15 14:11:55.000000000 -0400 >+++ linux-2.6.18.x86_64/arch/x86_64/kernel/reboot.c 2008-07-15 19:34:20.000000000 -0400 >@@ -90,7 +90,7 @@ void machine_shutdown(void) > reboot_cpu_id = 0; > > /* Make certain the cpu I'm about to reboot on is online */ >- if (!cpu_isset(reboot_cpu_id, cpu_online_map)) { >+ if (cpu_online(reboot_cpu_id)) { > reboot_cpu_id = smp_processor_id(); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 455430
:
311834
| 311895