Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5072
b: refs/heads/master
c: fc00a62
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jul 26, 2005
1 parent 7ca250d commit 0f329b3
Show file tree
Hide file tree
Showing 187 changed files with 35,535 additions and 30,869 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8d11e3d0282e9607f65c73383c4030fd8f0e972
refs/heads/master: fc00a6274b786f6863b32c79ff6f92aa0960b789
15 changes: 0 additions & 15 deletions trunk/Documentation/scsi/scsi_mid_low_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ Summary:
scsi_remove_device - detach and remove a SCSI device
scsi_remove_host - detach and remove all SCSI devices owned by host
scsi_report_bus_reset - report scsi _bus_ reset observed
scsi_set_device - place device reference in host structure
scsi_track_queue_full - track successive QUEUE_FULL events
scsi_unblock_requests - allow further commands to be queued to given host
scsi_unregister - [calls scsi_host_put()]
Expand Down Expand Up @@ -740,20 +739,6 @@ int scsi_remove_host(struct Scsi_Host *shost)
void scsi_report_bus_reset(struct Scsi_Host * shost, int channel)


/**
* scsi_set_device - place device reference in host structure
* @shost: a pointer to a scsi host instance
* @pdev: pointer to device instance to assign
*
* Returns nothing
*
* Might block: no
*
* Defined in: include/scsi/scsi_host.h .
**/
void scsi_set_device(struct Scsi_Host * shost, struct device * dev)


/**
* scsi_track_queue_full - track successive QUEUE_FULL events on given
* device to determine if and when there is a need
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/alpha/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,20 @@ machine_restart(char *restart_cmd)
common_shutdown(LINUX_REBOOT_CMD_RESTART, restart_cmd);
}

EXPORT_SYMBOL(machine_restart);

void
machine_halt(void)
{
common_shutdown(LINUX_REBOOT_CMD_HALT, NULL);
}

EXPORT_SYMBOL(machine_halt);

void
machine_power_off(void)
{
common_shutdown(LINUX_REBOOT_CMD_POWER_OFF, NULL);
}

EXPORT_SYMBOL(machine_power_off);

/* Used by sysrq-p, among others. I don't believe r9-r15 are ever
saved in the context it's used. */
Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,13 @@ void machine_halt(void)
{
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
if (pm_power_off)
pm_power_off();
}

EXPORT_SYMBOL(machine_power_off);

void machine_restart(char * __unused)
{
Expand Down Expand Up @@ -169,8 +167,6 @@ void machine_restart(char * __unused)
while (1);
}

EXPORT_SYMBOL(machine_restart);

void __show_regs(struct pt_regs *regs)
{
unsigned long flags = condition_codes(regs);
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mm/mm-armv.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ static void __init build_mem_type_table(void)
mem_types[MT_ROM].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
mem_types[MT_MINICLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;

mem_types[MT_DEVICE].prot_pte |= L_PTE_BUFFERABLE;
mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED;
}

cp = &cache_policies[cachepolicy];
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm26/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ void machine_power_off(void)
{
}

EXPORT_SYMBOL(machine_halt);
EXPORT_SYMBOL(machine_power_off);

void machine_restart(char * __unused)
{
/*
Expand Down Expand Up @@ -136,8 +133,6 @@ void machine_restart(char * __unused)
while (1);
}

EXPORT_SYMBOL(machine_restart);

void show_regs(struct pt_regs * regs)
{
unsigned long flags;
Expand Down
9 changes: 2 additions & 7 deletions trunk/arch/cris/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
#include <linux/user.h>
#include <linux/elfcore.h>
#include <linux/mqueue.h>
#include <linux/reboot.h>

//#define DEBUG

Expand Down Expand Up @@ -208,13 +209,11 @@ void cpu_idle (void)

void hard_reset_now (void);

void machine_restart(void)
void machine_restart(char *cmd)
{
hard_reset_now();
}

EXPORT_SYMBOL(machine_restart);

/*
* Similar to machine_power_off, but don't shut off power. Add code
* here to freeze the system for e.g. post-mortem debug purpose when
Expand All @@ -225,16 +224,12 @@ void machine_halt(void)
{
}

EXPORT_SYMBOL(machine_halt);

/* If or when software power-off is implemented, add code here. */

void machine_power_off(void)
{
}

EXPORT_SYMBOL(machine_power_off);

/*
* When a process does an "exec", machine state like FPU and debug
* registers need to be reset. This is a hook function for that.
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/h8300/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,20 @@ void machine_restart(char * __unused)
__asm__("jmp @@0");
}

EXPORT_SYMBOL(machine_restart);

void machine_halt(void)
{
local_irq_disable();
__asm__("sleep");
for (;;);
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
local_irq_disable();
__asm__("sleep");
for (;;);
}

EXPORT_SYMBOL(machine_power_off);

void show_regs(struct pt_regs * regs)
{
printk("\nPC: %08lx Status: %02x",
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/i386/kernel/apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,14 +911,7 @@ static void apm_power_off(void)
0xcd, 0x15 /* int $0x15 */
};

/*
* This may be called on an SMP machine.
*/
#ifdef CONFIG_SMP
/* Some bioses don't like being called from CPU != 0 */
set_cpus_allowed(current, cpumask_of_cpu(0));
BUG_ON(smp_processor_id() != 0);
#endif
if (apm_info.realmode_power_off)
{
(void)apm_save_cpus();
Expand Down
19 changes: 8 additions & 11 deletions trunk/arch/i386/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void machine_shutdown(void)
reboot_cpu_id = 0;

/* See if there has been given a command line override */
if ((reboot_cpu_id != -1) && (reboot_cpu < NR_CPUS) &&
if ((reboot_cpu != -1) && (reboot_cpu < NR_CPUS) &&
cpu_isset(reboot_cpu, cpu_online_map)) {
reboot_cpu_id = reboot_cpu;
}
Expand All @@ -311,10 +311,8 @@ void machine_shutdown(void)
#endif
}

void machine_restart(char * __unused)
void machine_emergency_restart(void)
{
machine_shutdown();

if (!reboot_thru_bios) {
if (efi_enabled) {
efi.reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL);
Expand All @@ -337,23 +335,22 @@ void machine_restart(char * __unused)
machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
}

EXPORT_SYMBOL(machine_restart);
void machine_restart(char * __unused)
{
machine_shutdown();
machine_emergency_restart();
}

void machine_halt(void)
{
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
lapic_shutdown();
machine_shutdown();

if (efi_enabled)
efi.reset_system(EFI_RESET_SHUTDOWN, EFI_SUCCESS, 0, NULL);
if (pm_power_off)
pm_power_off();
}

EXPORT_SYMBOL(machine_power_off);

5 changes: 0 additions & 5 deletions trunk/arch/i386/mach-visws/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ void machine_restart(char * __unused)
outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT);
}

EXPORT_SYMBOL(machine_restart);

void machine_power_off(void)
{
unsigned short pm_status;
Expand All @@ -43,10 +41,7 @@ void machine_power_off(void)
outl(PIIX_SPECIAL_STOP, 0xCFC);
}

EXPORT_SYMBOL(machine_power_off);

void machine_halt(void)
{
}

EXPORT_SYMBOL(machine_halt);
5 changes: 0 additions & 5 deletions trunk/arch/i386/mach-voyager/voyager_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@ machine_restart(char *cmd)
}
}

EXPORT_SYMBOL(machine_restart);

void
mca_nmi_hook(void)
{
Expand Down Expand Up @@ -315,12 +313,9 @@ machine_halt(void)
machine_power_off();
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
if (pm_power_off)
pm_power_off();
}

EXPORT_SYMBOL(machine_power_off);
5 changes: 0 additions & 5 deletions trunk/arch/ia64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,16 +807,12 @@ machine_restart (char *restart_cmd)
(*efi.reset_system)(EFI_RESET_WARM, 0, 0, NULL);
}

EXPORT_SYMBOL(machine_restart);

void
machine_halt (void)
{
cpu_halt();
}

EXPORT_SYMBOL(machine_halt);

void
machine_power_off (void)
{
Expand All @@ -825,4 +821,3 @@ machine_power_off (void)
machine_halt();
}

EXPORT_SYMBOL(machine_power_off);
6 changes: 0 additions & 6 deletions trunk/arch/m32r/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,18 @@ void machine_restart(char *__unused)
cpu_relax();
}

EXPORT_SYMBOL(machine_restart);

void machine_halt(void)
{
printk("Please push reset button!\n");
while (1)
cpu_relax();
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
/* M32R_FIXME */
}

EXPORT_SYMBOL(machine_power_off);

static int __init idle_setup (char *str)
{
if (!strncmp(str, "poll", 4)) {
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/m68k/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,26 +113,20 @@ void machine_restart(char * __unused)
for (;;);
}

EXPORT_SYMBOL(machine_restart);

void machine_halt(void)
{
if (mach_halt)
mach_halt();
for (;;);
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
if (mach_power_off)
mach_power_off();
for (;;);
}

EXPORT_SYMBOL(machine_power_off);

void show_regs(struct pt_regs * regs)
{
printk("\n");
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/m68knommu/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,20 @@ void machine_restart(char * __unused)
for (;;);
}

EXPORT_SYMBOL(machine_restart);

void machine_halt(void)
{
if (mach_halt)
mach_halt();
for (;;);
}

EXPORT_SYMBOL(machine_halt);

void machine_power_off(void)
{
if (mach_power_off)
mach_power_off();
for (;;);
}

EXPORT_SYMBOL(machine_power_off);

void show_regs(struct pt_regs * regs)
{
printk(KERN_NOTICE "\n");
Expand Down
Loading

0 comments on commit 0f329b3

Please sign in to comment.