Commit feaaa64a authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/davem/sparc-2.6

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents f30c12fd 1dd50b91
...@@ -1076,17 +1076,17 @@ static void __init psycho_register_error_handlers(struct pci_controller_info *p) ...@@ -1076,17 +1076,17 @@ static void __init psycho_register_error_handlers(struct pci_controller_info *p)
* bits for each PBM. * bits for each PBM.
*/ */
tmp = psycho_read(base + PSYCHO_PCIA_CTRL); tmp = psycho_read(base + PSYCHO_PCIA_CTRL);
tmp |= (PSYCHO_PCICTRL_SBH_ERR | tmp |= (PSYCHO_PCICTRL_SERR |
PSYCHO_PCICTRL_SERR | PSYCHO_PCICTRL_SBH_ERR |
PSYCHO_PCICTRL_SBH_INT |
PSYCHO_PCICTRL_EEN); PSYCHO_PCICTRL_EEN);
tmp &= ~(PSYCHO_PCICTRL_SBH_INT);
psycho_write(base + PSYCHO_PCIA_CTRL, tmp); psycho_write(base + PSYCHO_PCIA_CTRL, tmp);
tmp = psycho_read(base + PSYCHO_PCIB_CTRL); tmp = psycho_read(base + PSYCHO_PCIB_CTRL);
tmp |= (PSYCHO_PCICTRL_SBH_ERR | tmp |= (PSYCHO_PCICTRL_SERR |
PSYCHO_PCICTRL_SERR | PSYCHO_PCICTRL_SBH_ERR |
PSYCHO_PCICTRL_SBH_INT |
PSYCHO_PCICTRL_EEN); PSYCHO_PCICTRL_EEN);
tmp &= ~(PSYCHO_PCICTRL_SBH_INT);
psycho_write(base + PSYCHO_PCIB_CTRL, tmp); psycho_write(base + PSYCHO_PCIB_CTRL, tmp);
} }
......
...@@ -1372,10 +1372,10 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p) ...@@ -1372,10 +1372,10 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
SCHIZO_PCICTRL_RTRY_ERR | SCHIZO_PCICTRL_RTRY_ERR |
SCHIZO_PCICTRL_SBH_ERR | SCHIZO_PCICTRL_SBH_ERR |
SCHIZO_PCICTRL_SERR | SCHIZO_PCICTRL_SERR |
SCHIZO_PCICTRL_SBH_INT |
SCHIZO_PCICTRL_EEN); SCHIZO_PCICTRL_EEN);
err_no_mask = SCHIZO_PCICTRL_DTO_ERR; err_no_mask = (SCHIZO_PCICTRL_DTO_ERR |
SCHIZO_PCICTRL_SBH_INT);
/* Enable PCI Error interrupts and clear error /* Enable PCI Error interrupts and clear error
* bits for each PBM. * bits for each PBM.
......
...@@ -452,7 +452,7 @@ static void fans_full_blast(void) ...@@ -452,7 +452,7 @@ static void fans_full_blast(void)
} }
} }
#define POLL_INTERVAL (5 * HZ) #define POLL_INTERVAL (5 * 1000)
static unsigned long last_warning_jiffies; static unsigned long last_warning_jiffies;
static struct task_struct *kenvctrld_task; static struct task_struct *kenvctrld_task;
...@@ -468,8 +468,7 @@ static int kenvctrld(void *__unused) ...@@ -468,8 +468,7 @@ static int kenvctrld(void *__unused)
struct bbc_cpu_temperature *tp; struct bbc_cpu_temperature *tp;
struct bbc_fan_control *fp; struct bbc_fan_control *fp;
current->state = TASK_INTERRUPTIBLE; msleep_interruptible(POLL_INTERVAL);
schedule_timeout(POLL_INTERVAL);
if (signal_pending(current)) if (signal_pending(current))
break; break;
......
...@@ -189,13 +189,13 @@ static int wait_for_pin(struct bbc_i2c_bus *bp, u8 *status) ...@@ -189,13 +189,13 @@ static int wait_for_pin(struct bbc_i2c_bus *bp, u8 *status)
while (limit-- > 0) { while (limit-- > 0) {
u8 val; u8 val;
current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE);
*status = val = readb(bp->i2c_control_regs + 0); *status = val = readb(bp->i2c_control_regs + 0);
if ((val & I2C_PCF_PIN) == 0) { if ((val & I2C_PCF_PIN) == 0) {
ret = 0; ret = 0;
break; break;
} }
schedule_timeout(HZ/4); msleep_interruptible(250);
} }
remove_wait_queue(&bp->wq, &wait); remove_wait_queue(&bp->wq, &wait);
bp->waiting = 0; bp->waiting = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment