i386: reboot.c cleanups
PATCH 1/1 i386: reboot.c cleanups
The partch below includes the following changes:
- arch/i386/kernel/reboot.c: make reboot_thru_bios static
- arch/i386/mach-visws/reboot.c: remove the unused reboot_thru_bios and reboot_smp
- arch/i386/mach-voyager/voyager_basic.c: remove the unused reboot_thru_bios
- arch/i386/mach-voyager/voyager_smp.c: remove the unused reboot_smp
diffstat output:
arch/i386/kernel/reboot.c | 2 +- arch/i386/mach-visws/reboot.c | 3 --- arch/i386/mach-voyager/voyager_basic.c | 2 -- arch/i386/mach-voyager/voyager_smp.c | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-)
arch/i386/kernel/process.c renamed from arch/i386/kernel/process.c.old +1 -1
@@ -60,7 +60,7 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork"); -int hlt_counter; +static int hlt_counter;unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override);
arch/parisc/kernel/process.c renamed from arch/parisc/kernel/process.c.old +1 -1
@@ -54,7 +54,7 @@#include <asm/uaccess.h> #include <asm/unwind.h> -int hlt_counter; +static int hlt_counter;/* * Power off function, if any
arch/x86_64/kernel/process.c renamed from arch/x86_64/kernel/process.c.old +1 -1
@@ -53,7 +53,7 @@unsigned long kernel_thread_flags =CLONE_VM |CLONE_UNTRACED ; -atomic_t hlt_counter =ATOMIC_INIT (0 ); +static atomic_t hlt_counter =ATOMIC_INIT (0 );unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override);
Quoted 6 lines · Adrian Bunk
The partch below includes the following changes:
-arch/i386/kernel/reboot.c: makereboot_thru_biosstatic
-arch/i386/mach-visws/reboot.c: remove the unusedreboot_thru_biosandreboot_smp
-arch/i386/mach-voyager/voyager_basic.c: remove the unusedreboot_thru_bios
-arch/i386/mach-voyager/voyager_smp.c: remove the unusedreboot_smp
Look like "i386/x86_64/parisc process.c: make hlt_counter static" patch attached instead of promised :)
Quoted 50 lines
diffstat output:
arch/i386/kernel/reboot.c | 2 +- arch/i386/mach-visws/reboot.c | 3 --- arch/i386/mach-voyager/voyager_basic.c | 2 -- arch/i386/mach-voyager/voyager_smp.c | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-)Signed-off-by Adrian Bunk <[email protected]>arch/i386/kernel/process.c renamed from arch/i386/kernel/process.c.old +1
-1@@ -60,7 +60,7 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork"); -int hlt_counter; +static int hlt_counter;unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override);arch/parisc/kernel/process.c renamed from arch/parisc/kernel/process.c.old +1
-1@@ -54,7 +54,7 @@#include <asm/uaccess.h> #include <asm/unwind.h> -int hlt_counter; +static int hlt_counter;/* * Power off function, if any arch/x86_64/kernel/process.c renamed from arch/x86_64/kernel/process.c.old +1
-2@@ -53,7 +53,7 @@unsigned long kernel_thread_flags =CLONE_VM |CLONE_UNTRACED ; -atomic_t hlt_counter =ATOMIC_INIT (0 ); +static atomic_t hlt_counter =ATOMIC_INIT (0 );unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override); -To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Andrey Panin | Linux and UNIX system administrator [email protected] | PGP key: wwwkeys.pgp.net
PATCH 1/1 i386: reboot.c cleanups
Quoted 11 lines · Andrey Panin
Quoted 6 lines · Adrian Bunk
The partch below includes the following changes:
-arch/i386/kernel/reboot.c: makereboot_thru_biosstatic
-arch/i386/mach-visws/reboot.c: remove the unusedreboot_thru_biosandreboot_smp
-arch/i386/mach-voyager/voyager_basic.c: remove the unusedreboot_thru_bios
-arch/i386/mach-voyager/voyager_smp.c: remove the unusedreboot_smpLook like "i386/x86_64/parisc
process.c: makehlt_counterstatic" patch attached instead of promised :)
...
Ups, sorry.
Correct patch below.
<-- snip -->
The patch below includes the following changes:
- arch/i386/kernel/reboot.c: make reboot_thru_bios static
- arch/i386/mach-visws/reboot.c: remove the unused reboot_thru_bios and reboot_smp
- arch/i386/mach-voyager/voyager_basic.c: remove the unused reboot_thru_bios
- arch/i386/mach-voyager/voyager_smp.c: remove the unused reboot_smp
diffstat output:
arch/i386/kernel/reboot.c | 2 +- arch/i386/mach-visws/reboot.c | 3 --- arch/i386/mach-voyager/voyager_basic.c | 2 -- arch/i386/mach-voyager/voyager_smp.c | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-)
arch/i386/mach-visws/reboot.c renamed from arch/i386/mach-visws/reboot.c.old +0 -3
@@ -8,9 +8,6 @@void (*pm_power_off)(void ); -int reboot_thru_bios; -int reboot_smp; -void machine_restart (char * __unused) {#ifdef CONFIG_SMP
arch/i386/mach-voyager/voyager_basic.c renamed from arch/i386/mach-voyager/voyager_basic.c.old +0 -2
@@ -36,8 +36,6 @@*/ void (*pm_power_off)(void ); -int reboot_thru_bios; -int voyager_level =0 ;struct voyager_SUS *voyager_SUS =NULL ;
arch/i386/mach-voyager/voyager_smp.c renamed from arch/i386/mach-voyager/voyager_smp.c.old +0 -2
@@ -32,8 +32,6 @@#include <linux/irq.h> -int reboot_smp =0 ; -/* TLB state -- visible externally, indexed physically */ DEFINE_PER_CPU(struct tlb_state, cpu_tlbstate) ____cacheline_aligned = { &init_mm, 0 };
arch/i386/kernel/reboot.c renamed from arch/i386/kernel/reboot.c.old +1 -1
@@ -20,7 +20,7 @@void (*pm_power_off)(void );static int reboot_mode; -int reboot_thru_bios; +static int reboot_thru_bios;#ifdef CONFIG_SMP static int reboot_cpu =-1 ;
James Bottomley
maintainerQuoted 6 lines · Adrian Bunk
The partch below includes the following changes:
-arch/i386/kernel/reboot.c: makereboot_thru_biosstatic
-arch/i386/mach-visws/reboot.c: remove the unusedreboot_thru_biosandreboot_smp
-arch/i386/mach-voyager/voyager_basic.c: remove the unusedreboot_thru_bios
-arch/i386/mach-voyager/voyager_smp.c: remove the unusedreboot_smp
The description and the patch below don't match. Do you have the correct patch?
James
Quoted 33 lines
arch/i386/kernel/process.c renamed from arch/i386/kernel/process.c.old +1
-1@@ -60,7 +60,7 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork"); -int hlt_counter; +static int hlt_counter;unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override);arch/parisc/kernel/process.c renamed from arch/parisc/kernel/process.c.old +1
-1@@ -54,7 +54,7 @@#include <asm/uaccess.h> #include <asm/unwind.h> -int hlt_counter; +static int hlt_counter;/* * Power off function, if any arch/x86_64/kernel/process.c renamed from arch/x86_64/kernel/process.c.old +1
-1@@ -53,7 +53,7 @@unsigned long kernel_thread_flags =CLONE_VM |CLONE_UNTRACED ; -atomic_t hlt_counter =ATOMIC_INIT (0 ); +static atomic_t hlt_counter =ATOMIC_INIT (0 );unsigned long boot_option_idle_override =0 ;EXPORT_SYMBOL (boot_option_idle_override);
Quoted 10 lines · James Bottomley
Quoted 6 lines · Adrian Bunk
The partch below includes the following changes:
-arch/i386/kernel/reboot.c: makereboot_thru_biosstatic
-arch/i386/mach-visws/reboot.c: remove the unusedreboot_thru_biosandreboot_smp
-arch/i386/mach-voyager/voyager_basic.c: remove the unusedreboot_thru_bios
-arch/i386/mach-voyager/voyager_smp.c: remove the unusedreboot_smpThe description and the patch below don't match. Do you have the correct patch?
It's below.
Quoted 1 line
James
<-- snip -->
Date: Mon, 6 Dec 2004 14:15:09 +0100
From: Adrian Bunk <[email protected]>
To: [email protected]
Subject: [2.6 patch] i386: reboot.c cleanups
Quoted 11 lines · Andrey Panin
Quoted 6 lines · Adrian Bunk
The partch below includes the following changes:
-arch/i386/kernel/reboot.c: makereboot_thru_biosstatic
-arch/i386/mach-visws/reboot.c: remove the unusedreboot_thru_biosandreboot_smp
-arch/i386/mach-voyager/voyager_basic.c: remove the unusedreboot_thru_bios
-arch/i386/mach-voyager/voyager_smp.c: remove the unusedreboot_smpLook like "i386/x86_64/parisc
process.c: makehlt_counterstatic" patch attached instead of promised :)
...
Ups, sorry.
Correct patch below.
<-- snip -->
The patch below includes the following changes:
- arch/i386/kernel/reboot.c: make reboot_thru_bios static
- arch/i386/mach-visws/reboot.c: remove the unused reboot_thru_bios and reboot_smp
- arch/i386/mach-voyager/voyager_basic.c: remove the unused reboot_thru_bios
- arch/i386/mach-voyager/voyager_smp.c: remove the unused reboot_smp
diffstat output:
arch/i386/kernel/reboot.c | 2 +- arch/i386/mach-visws/reboot.c | 3 --- arch/i386/mach-voyager/voyager_basic.c | 2 -- arch/i386/mach-voyager/voyager_smp.c | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-)
arch/i386/mach-visws/reboot.c renamed from arch/i386/mach-visws/reboot.c.old +0 -3
@@ -8,9 +8,6 @@void (*pm_power_off)(void ); -int reboot_thru_bios; -int reboot_smp; -void machine_restart (char * __unused) {#ifdef CONFIG_SMP
arch/i386/mach-voyager/voyager_basic.c renamed from arch/i386/mach-voyager/voyager_basic.c.old +0 -2
@@ -36,8 +36,6 @@*/ void (*pm_power_off)(void ); -int reboot_thru_bios; -int voyager_level =0 ;struct voyager_SUS *voyager_SUS =NULL ;
arch/i386/mach-voyager/voyager_smp.c renamed from arch/i386/mach-voyager/voyager_smp.c.old +0 -2
@@ -32,8 +32,6 @@#include <linux/irq.h> -int reboot_smp =0 ; -/* TLB state -- visible externally, indexed physically */ DEFINE_PER_CPU(struct tlb_state, cpu_tlbstate) ____cacheline_aligned = { &init_mm, 0 };
arch/i386/kernel/reboot.c renamed from arch/i386/kernel/reboot.c.old +1 -1
@@ -20,7 +20,7 @@void (*pm_power_off)(void );static int reboot_mode; -int reboot_thru_bios; +static int reboot_thru_bios;#ifdef CONFIG_SMP static int reboot_cpu =-1 ;