Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39053
b: refs/heads/master
c: d83682b
h: refs/heads/master
i:
  39051: 8f32f85
v: v3
  • Loading branch information
Christian Borntraeger authored and Martin Schwidefsky committed Oct 6, 2006
1 parent 650ca9a commit 332e1dc
Show file tree
Hide file tree
Showing 35 changed files with 199 additions and 320 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: 96e1a87392293cf895ea99ab70758453897c7bbf
refs/heads/master: d83682b3971d6707d6d668b3b62d416ab7dd1ab3
28 changes: 4 additions & 24 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2261,17 +2261,6 @@ T: git kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6.git
T: cvs cvs.parisc-linux.org:/var/cvs/linux-2.6
S: Maintained

PC87360 HARDWARE MONITORING DRIVER
P: Jim Cromie
M: jim.cromie@gmail.com
L: lm-sensors@lm-sensors.org
S: Maintained

PC8736x GPIO DRIVER
P: Jim Cromie
M: jim.cromie@gmail.com
S: Maintained

PCI ERROR RECOVERY
P: Linas Vepstas
M: linas@austin.ibm.com
Expand Down Expand Up @@ -2603,19 +2592,10 @@ L: lksctp-developers@lists.sourceforge.net
S: Supported

SCx200 CPU SUPPORT
P: Jim Cromie
M: jim.cromie@gmail.com
S: Odd Fixes

SCx200 GPIO DRIVER
P: Jim Cromie
M: jim.cromie@gmail.com
S: Maintained

SCx200 HRT CLOCKSOURCE DRIVER
P: Jim Cromie
M: jim.cromie@gmail.com
S: Maintained
P: Christer Weinigel
M: christer@weinigel.se
W: http://www.weinigel.se
S: Supported

SECURITY CONTACT
P: Security Officers
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ inline void smp_local_timer_interrupt(void)
{
profile_tick(CPU_PROFILING);
#ifdef CONFIG_SMP
update_process_times(user_mode_vm(get_irq_regs()));
update_process_times(user_mode_vm(irq_regs));
#endif

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/m68k/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <asm/scatterlist.h>

void *dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *handle, gfp_t flag)
dma_addr_t *handle, int flag)
{
struct page *page, **map;
pgprot_t pgprot;
Expand Down Expand Up @@ -51,7 +51,7 @@ void *dma_alloc_coherent(struct device *dev, size_t size,
pgprot_val(pgprot) |= _PAGE_GLOBAL040 | _PAGE_NOCACHE_S;
else
pgprot_val(pgprot) |= _PAGE_NOCACHE030;
addr = vmap(map, size, VM_MAP, pgprot);
addr = vmap(map, size, flag, pgprot);
kfree(map);

return addr;
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/m68k/kernel/m68k_ksyms.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <linux/module.h>
#include <linux/linkage.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/user.h>
#include <linux/elfcore.h>
Expand Down Expand Up @@ -52,6 +53,9 @@ EXPORT_SYMBOL(mach_beep);
#endif
EXPORT_SYMBOL(dump_fpu);
EXPORT_SYMBOL(dump_thread);
EXPORT_SYMBOL(strnlen);
EXPORT_SYMBOL(strrchr);
EXPORT_SYMBOL(strstr);
EXPORT_SYMBOL(kernel_thread);
#ifdef CONFIG_VME
EXPORT_SYMBOL(vme_brdtype);
Expand Down
15 changes: 1 addition & 14 deletions trunk/arch/m68k/lib/string.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/

#define __IN_STRING_C

#include <linux/types.h>
#include <linux/module.h>
#include <linux/string.h>

char *strcpy(char *dest, const char *src)
{
return __kernel_strcpy(dest, src);
}
EXPORT_SYMBOL(strcpy);

void *memset(void *s, int c, size_t count)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/m68k/lib/uaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ unsigned long __generic_copy_to_user(void __user *to, const void *from,
" .even\n"
"20: lsl.l #2,%0\n"
"50: add.l %5,%0\n"
" jra 8b\n"
" jra 7b\n"
" .previous\n"
"\n"
" .section __ex_table,\"a\"\n"
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void forward_interrupts(int pid)
unsigned int do_IRQ(int irq, union uml_pt_regs *regs)
{
irq_enter();
__do_IRQ(irq);
__do_IRQ(irq, (struct pt_regs *)regs);
irq_exit();
return 1;
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/ide/mips/swarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Author: Manish Lachwani, mlachwani@mvista.com
* Copyright (C) 2004 MIPS Technologies, Inc. All rights reserved.
* Author: Maciej W. Rozycki <macro@mips.com>
* Copyright (c) 2006 Maciej W. Rozycki
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -128,7 +127,6 @@ static int __devinit swarm_ide_probe(struct device *dev)
memcpy(hwif->io_ports, hwif->hw.io_ports, sizeof(hwif->io_ports));
hwif->irq = hwif->hw.irq;

probe_hwif_init(hwif);
dev_set_drvdata(dev, hwif);

return 0;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -3849,7 +3849,6 @@ static int hot_add_disk(mddev_t * mddev, dev_t dev)
}
clear_bit(In_sync, &rdev->flags);
rdev->desc_nr = -1;
rdev->saved_raid_disk = -1;
err = bind_rdev_to_array(rdev, mddev);
if (err)
goto abort_export;
Expand Down
104 changes: 9 additions & 95 deletions trunk/drivers/mmc/mmc_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <linux/kdev_t.h>
#include <linux/blkdev.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>

#include <linux/mmc/card.h>
#include <linux/mmc/host.h>
Expand Down Expand Up @@ -155,71 +154,6 @@ static int mmc_blk_prep_rq(struct mmc_queue *mq, struct request *req)
return stat;
}

static u32 mmc_sd_num_wr_blocks(struct mmc_card *card)
{
int err;
u32 blocks;

struct mmc_request mrq;
struct mmc_command cmd;
struct mmc_data data;
unsigned int timeout_us;

struct scatterlist sg;

memset(&cmd, 0, sizeof(struct mmc_command));

cmd.opcode = MMC_APP_CMD;
cmd.arg = card->rca << 16;
cmd.flags = MMC_RSP_R1 | MMC_CMD_AC;

err = mmc_wait_for_cmd(card->host, &cmd, 0);
if ((err != MMC_ERR_NONE) || !(cmd.resp[0] & R1_APP_CMD))
return (u32)-1;

memset(&cmd, 0, sizeof(struct mmc_command));

cmd.opcode = SD_APP_SEND_NUM_WR_BLKS;
cmd.arg = 0;
cmd.flags = MMC_RSP_R1 | MMC_CMD_ADTC;

memset(&data, 0, sizeof(struct mmc_data));

data.timeout_ns = card->csd.tacc_ns * 100;
data.timeout_clks = card->csd.tacc_clks * 100;

timeout_us = data.timeout_ns / 1000;
timeout_us += data.timeout_clks * 1000 /
(card->host->ios.clock / 1000);

if (timeout_us > 100000) {
data.timeout_ns = 100000000;
data.timeout_clks = 0;
}

data.blksz = 4;
data.blocks = 1;
data.flags = MMC_DATA_READ;
data.sg = &sg;
data.sg_len = 1;

memset(&mrq, 0, sizeof(struct mmc_request));

mrq.cmd = &cmd;
mrq.data = &data;

sg_init_one(&sg, &blocks, 4);

mmc_wait_for_req(card->host, &mrq);

if (cmd.error != MMC_ERR_NONE || data.error != MMC_ERR_NONE)
return (u32)-1;

blocks = ntohl(blocks);

return blocks;
}

static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
{
struct mmc_blk_data *md = mq->data;
Expand Down Expand Up @@ -250,13 +184,10 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)

/*
* If the host doesn't support multiple block writes, force
* block writes to single block. SD cards are excepted from
* this rule as they support querying the number of
* successfully written sectors.
* block writes to single block.
*/
if (rq_data_dir(req) != READ &&
!(card->host->caps & MMC_CAP_MULTIWRITE) &&
!mmc_card_sd(card))
!(card->host->caps & MMC_CAP_MULTIWRITE))
brq.data.blocks = 1;

if (brq.data.blocks > 1) {
Expand Down Expand Up @@ -345,41 +276,24 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
return 1;

cmd_err:
mmc_card_release_host(card);

ret = 1;

/*
* If this is an SD card and we're writing, we can first
* mark the known good sectors as ok.
*
* If the card is not SD, we can still ok written sectors
* if the controller can do proper error reporting.
/*
* For writes and where the host claims to support proper
* error reporting, we first ok the successful blocks.
*
* For reads we just fail the entire chunk as that should
* be safe in all cases.
*/
if (rq_data_dir(req) != READ && mmc_card_sd(card)) {
u32 blocks;
unsigned int bytes;

blocks = mmc_sd_num_wr_blocks(card);
if (blocks != (u32)-1) {
if (card->csd.write_partial)
bytes = blocks << md->block_bits;
else
bytes = blocks << 9;
spin_lock_irq(&md->lock);
ret = end_that_request_chunk(req, 1, bytes);
spin_unlock_irq(&md->lock);
}
} else if (rq_data_dir(req) != READ &&
(card->host->caps & MMC_CAP_MULTIWRITE)) {
if (rq_data_dir(req) != READ &&
(card->host->caps & MMC_CAP_MULTIWRITE)) {
spin_lock_irq(&md->lock);
ret = end_that_request_chunk(req, 1, brq.data.bytes_xfered);
spin_unlock_irq(&md->lock);
}

mmc_card_release_host(card);

spin_lock_irq(&md->lock);
while (ret) {
ret = end_that_request_chunk(req, 0,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ static int ap_poll_thread(void *data)
unsigned long flags;
int requests;

set_user_nice(current, -20);
set_user_nice(current, 19);
while (1) {
if (need_resched()) {
schedule();
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/host/ohci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ finish_unlinks (struct ohci_hcd *ohci, u16 tick)
/* only take off EDs that the HC isn't using, accounting for
* frame counter wraps and EDs with partially retired TDs
*/
if (likely (HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
if (likely (get_irq_regs() && HC_IS_RUNNING(ohci_to_hcd(ohci)->state))) {
if (tick_before (tick, ed->tick)) {
skip_ed:
last = &ed->ed_next;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int nfsd_create_serv(void)

atomic_set(&nfsd_busy, 0);
nfsd_serv = svc_create_pooled(&nfsd_program,
nfsd_max_blksize,
NFSD_BUFSIZE - NFSSVC_MAXBLKSIZE + nfsd_max_blksize,
nfsd_last_thread,
nfsd, SIG_NOCLEAN, THIS_MODULE);
if (nfsd_serv == NULL)
Expand Down
16 changes: 8 additions & 8 deletions trunk/include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
#endif
#endif

#define WARN_ON_ONCE(condition) ({ \
static int __warned; \
typeof(condition) __ret_warn_once = (condition); \
\
if (unlikely(__ret_warn_once)) \
if (WARN_ON(!__warned)) \
__warned = 1; \
unlikely(__ret_warn_once); \
#define WARN_ON_ONCE(condition) ({ \
static int __warn_once = 1; \
typeof(condition) __ret_warn_once = (condition);\
\
if (likely(__warn_once)) \
if (WARN_ON(__ret_warn_once)) \
__warn_once = 0; \
unlikely(__ret_warn_once); \
})

#ifdef CONFIG_SMP
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-generic/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern unsigned long __per_cpu_offset[NR_CPUS];

/* var is in discarded region: offset to particular copy we want */
#define per_cpu(var, cpu) (*({ \
extern int simple_identifier_##var(void); \
extern int simple_indentifier_##var(void); \
RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]); }))
#define __get_cpu_var(var) per_cpu(var, smp_processor_id())
#define __raw_get_cpu_var(var) per_cpu(var, raw_smp_processor_id())
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-m68k/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static inline int dma_is_consistent(dma_addr_t dma_addr)
}

extern void *dma_alloc_coherent(struct device *, size_t,
dma_addr_t *, gfp_t);
dma_addr_t *, int);
extern void dma_free_coherent(struct device *, size_t,
void *, dma_addr_t);

Expand Down
Loading

0 comments on commit 332e1dc

Please sign in to comment.