Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40757
b: refs/heads/master
c: eb1dc33
h: refs/heads/master
i:
  40755: ae29f53
v: v3
  • Loading branch information
Alexey Dobriyan authored and Steven Whitehouse committed Nov 6, 2006
1 parent 973e4fb commit addf529
Show file tree
Hide file tree
Showing 34 changed files with 115 additions and 208 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: b7651030a56b9aa80e9cb43b4c8bb28b89c42359
refs/heads/master: eb1dc33aa235b0e44ada6716cda385883c6e6bff
9 changes: 9 additions & 0 deletions trunk/arch/avr32/boards/atstk1000/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ struct tag *bootloader_tags __initdata;

struct lcdc_platform_data __initdata atstk1000_fb0_data;

asmlinkage void __init board_early_init(void)
{
extern void sdram_init(void);

#ifdef CONFIG_LOADER_STANDALONE
sdram_init();
#endif
}

void __init board_setup_fbmem(unsigned long fbmem_start,
unsigned long fbmem_size)
{
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/avr32/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ kernel_entry:
mov r7, 0
#endif

/* Set up the PIO, SDRAM controller, early printk, etc. */
rcall board_early_init

/* Start the show */
lddpc pc, kernel_start_addr

Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/avr32/kernel/syscall-stubs.S
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,3 @@ __sys_splice:
rcall sys_splice
sub sp, -4
popm pc

.global __sys_epoll_pwait
.type __sys_epoll_pwait,@function
__sys_epoll_pwait:
pushm lr
st.w --sp, ARG6
rcall sys_epoll_pwait
sub sp, -4
popm pc
1 change: 0 additions & 1 deletion trunk/arch/avr32/kernel/syscall_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,4 @@ sys_call_table:
.long sys_sync_file_range
.long sys_tee
.long sys_vmsplice
.long __sys_epoll_pwait /* 265 */
.long sys_ni_syscall /* r8 is saturated at nr_syscalls */
3 changes: 1 addition & 2 deletions trunk/arch/avr32/lib/findbit.S
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ ENTRY(generic_find_next_zero_le_bit)
/* offset is not word-aligned. Handle the first (32 - r10) bits */
ldswp.w r8, r12[0]
sub r12, -4
com r8
lsr r8, r8, r10
brne .L_found

Expand All @@ -147,7 +146,7 @@ ENTRY(generic_find_next_zero_le_bit)

/* Main loop. offset must be word-aligned */
1: ldswp.w r8, r12[0]
com r8
cp.w r8, 0
brne .L_found
sub r12, -4
sub r9, 32
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/avr32/lib/io-readsb.S
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ __raw_readsb:
sub r10, 1
st.b r11++, r8
brne 3b

retal r12
3 changes: 3 additions & 0 deletions trunk/arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ config WARN_STACK_SIZE
This allows you to specify the maximum frame size a function may
have without the compiler complaining about it.

config ARCH_POPULATES_NODE_MAP
def_bool y

source "mm/Kconfig"

comment "I/O subsystem configuration"
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/s390/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ CONFIG_PACK_STACK=y
CONFIG_CHECK_STACK=y
CONFIG_STACK_GUARD=256
# CONFIG_WARN_STACK is not set
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
Expand Down
55 changes: 13 additions & 42 deletions trunk/arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ struct {
#define CHUNK_READ_WRITE 0
#define CHUNK_READ_ONLY 1
volatile int __cpu_logical_map[NR_CPUS]; /* logical cpu to cpu address */
unsigned long __initdata zholes_size[MAX_NR_ZONES];
static unsigned long __initdata memory_end;

/*
Expand Down Expand Up @@ -358,21 +357,6 @@ void machine_power_off(void)
*/
void (*pm_power_off)(void) = machine_power_off;

static void __init
add_memory_hole(unsigned long start, unsigned long end)
{
unsigned long dma_pfn = MAX_DMA_ADDRESS >> PAGE_SHIFT;

if (end <= dma_pfn)
zholes_size[ZONE_DMA] += end - start + 1;
else if (start > dma_pfn)
zholes_size[ZONE_NORMAL] += end - start + 1;
else {
zholes_size[ZONE_DMA] += dma_pfn - start + 1;
zholes_size[ZONE_NORMAL] += end - dma_pfn;
}
}

static int __init early_parse_mem(char *p)
{
memory_end = memparse(p, &p);
Expand Down Expand Up @@ -450,7 +434,7 @@ setup_lowcore(void)
lc->extended_save_area_addr = (__u32)
__alloc_bootmem(PAGE_SIZE, PAGE_SIZE, 0);
/* enable extended save area */
__ctl_set_bit(14, 29);
ctl_set_bit(14, 29);
}
#endif
set_prefix((u32)(unsigned long) lc);
Expand Down Expand Up @@ -494,7 +478,6 @@ setup_memory(void)
{
unsigned long bootmap_size;
unsigned long start_pfn, end_pfn, init_pfn;
unsigned long last_rw_end;
int i;

/*
Expand Down Expand Up @@ -550,39 +533,27 @@ setup_memory(void)
/*
* Register RAM areas with the bootmem allocator.
*/
last_rw_end = start_pfn;

for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) {
unsigned long start_chunk, end_chunk;
unsigned long start_chunk, end_chunk, pfn;

if (memory_chunk[i].type != CHUNK_READ_WRITE)
continue;
start_chunk = (memory_chunk[i].addr + PAGE_SIZE - 1);
start_chunk >>= PAGE_SHIFT;
end_chunk = (memory_chunk[i].addr + memory_chunk[i].size);
end_chunk >>= PAGE_SHIFT;
if (start_chunk < start_pfn)
start_chunk = start_pfn;
if (end_chunk > end_pfn)
end_chunk = end_pfn;
if (start_chunk < end_chunk) {
/* Initialize storage key for RAM pages */
for (init_pfn = start_chunk ; init_pfn < end_chunk;
init_pfn++)
page_set_storage_key(init_pfn << PAGE_SHIFT,
PAGE_DEFAULT_KEY);
free_bootmem(start_chunk << PAGE_SHIFT,
(end_chunk - start_chunk) << PAGE_SHIFT);
if (last_rw_end < start_chunk)
add_memory_hole(last_rw_end, start_chunk - 1);
last_rw_end = end_chunk;
}
start_chunk = PFN_DOWN(memory_chunk[i].addr);
end_chunk = start_chunk + PFN_DOWN(memory_chunk[i].size) - 1;
end_chunk = min(end_chunk, end_pfn);
if (start_chunk >= end_chunk)
continue;
add_active_range(0, start_chunk, end_chunk);
pfn = max(start_chunk, start_pfn);
for (; pfn <= end_chunk; pfn++)
page_set_storage_key(PFN_PHYS(pfn), PAGE_DEFAULT_KEY);
}

psw_set_key(PAGE_DEFAULT_KEY);

if (last_rw_end < end_pfn - 1)
add_memory_hole(last_rw_end, end_pfn - 1);
free_bootmem_with_active_regions(0, max_pfn);
reserve_bootmem(0, PFN_PHYS(start_pfn));

/*
* Reserve the bootmem bitmap itself as well. We do this in two
Expand Down
32 changes: 10 additions & 22 deletions trunk/arch/s390/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ void show_mem(void)
printk("%d pages swap cached\n",cached);
}

extern unsigned long __initdata zholes_size[];
/*
* paging_init() sets up the page tables
*/
Expand All @@ -101,16 +100,15 @@ void __init paging_init(void)
unsigned long pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERNSEG_TABLE;
static const int ssm_mask = 0x04000000L;
unsigned long ro_start_pfn, ro_end_pfn;
unsigned long zones_size[MAX_NR_ZONES];
unsigned long max_zone_pfns[MAX_NR_ZONES];

ro_start_pfn = PFN_DOWN((unsigned long)&__start_rodata);
ro_end_pfn = PFN_UP((unsigned long)&__end_rodata);

memset(zones_size, 0, sizeof(zones_size));
zones_size[ZONE_DMA] = max_low_pfn;
free_area_init_node(0, &contig_page_data, zones_size,
__pa(PAGE_OFFSET) >> PAGE_SHIFT,
zholes_size);
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
max_zone_pfns[ZONE_DMA] = max_low_pfn;
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
free_area_init_nodes(max_zone_pfns);

/* unmap whole virtual address space */

Expand Down Expand Up @@ -170,26 +168,16 @@ void __init paging_init(void)
unsigned long pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) |
_KERN_REGION_TABLE;
static const int ssm_mask = 0x04000000L;
unsigned long zones_size[MAX_NR_ZONES];
unsigned long dma_pfn, high_pfn;
unsigned long ro_start_pfn, ro_end_pfn;
unsigned long max_zone_pfns[MAX_NR_ZONES];

memset(zones_size, 0, sizeof(zones_size));
dma_pfn = MAX_DMA_ADDRESS >> PAGE_SHIFT;
high_pfn = max_low_pfn;
ro_start_pfn = PFN_DOWN((unsigned long)&__start_rodata);
ro_end_pfn = PFN_UP((unsigned long)&__end_rodata);

if (dma_pfn > high_pfn)
zones_size[ZONE_DMA] = high_pfn;
else {
zones_size[ZONE_DMA] = dma_pfn;
zones_size[ZONE_NORMAL] = high_pfn - dma_pfn;
}

/* Initialize mem_map[]. */
free_area_init_node(0, &contig_page_data, zones_size,
__pa(PAGE_OFFSET) >> PAGE_SHIFT, zholes_size);
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
max_zone_pfns[ZONE_DMA] = PFN_DOWN(MAX_DMA_ADDRESS);
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
free_area_init_nodes(max_zone_pfns);

/*
* map whole physical memory to virtual memory (identity mapping)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/gigaset/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static struct bc_state *gigaset_initbcs(struct bc_state *bcs,
} else if ((bcs->skb = dev_alloc_skb(SBUFSIZE + HW_HDR_LEN)) != NULL)
skb_reserve(bcs->skb, HW_HDR_LEN);
else {
warn("could not allocate skb\n");
gig_dbg(DEBUG_INIT, "could not allocate skb\n");
bcs->inputstate |= INS_skip_frame;
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/misc/lkdtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[])

struct scan_control;

unsigned long jp_shrink_inactive_list(unsigned long max_scan,
struct zone *zone, struct scan_control *sc)
unsigned long jp_shrink_page_list(struct list_head *page_list,
struct scan_control *sc)
{
lkdtm_handler();
jprobe_return();
Expand Down Expand Up @@ -297,8 +297,8 @@ int lkdtm_module_init(void)
lkdtm.entry = (kprobe_opcode_t*) jp_ll_rw_block;
break;
case MEM_SWAPOUT:
lkdtm.kp.symbol_name = "shrink_inactive_list";
lkdtm.entry = (kprobe_opcode_t*) jp_shrink_inactive_list;
lkdtm.kp.symbol_name = "shrink_page_list";
lkdtm.entry = (kprobe_opcode_t*) jp_shrink_page_list;
break;
case TIMERADD:
lkdtm.kp.symbol_name = "hrtimer_start";
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ config SGI_IOC3_ETH_HW_TX_CSUM

config MIPS_SIM_NET
tristate "MIPS simulator Network device (EXPERIMENTAL)"
depends on MIPS_SIM && EXPERIMENTAL
depends on NETDEVICES && MIPS_SIM && EXPERIMENTAL
help
The MIPSNET device is a simple Ethernet network device which is
emulated by the MIPS Simulator.
Expand Down Expand Up @@ -2467,7 +2467,7 @@ config ISERIES_VETH

config RIONET
tristate "RapidIO Ethernet over messaging driver support"
depends on RAPIDIO
depends on NETDEVICES && RAPIDIO

config RIONET_TX_SIZE
int "Number of outbound queue entries"
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/net/ehea/ehea.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/io.h>

#define DRV_NAME "ehea"
#define DRV_VERSION "EHEA_0043"
#define DRV_VERSION "EHEA_0034"

#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \
| NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
Expand Down Expand Up @@ -105,6 +105,9 @@
#define EHEA_BCMC_VLANID_ALL 0x01
#define EHEA_BCMC_VLANID_SINGLE 0x00

/* Use this define to kmallocate pHYP control blocks */
#define H_CB_ALIGNMENT 4096

#define EHEA_CACHE_LINE 128

/* Memory Regions */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ehea/ehea_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void ehea_get_ethtool_stats(struct net_device *dev,
data[i++] = port->port_res[0].swqe_refill_th;
data[i++] = port->resets;

cb6 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb6 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb6) {
ehea_error("no mem for cb6");
return;
Expand Down
Loading

0 comments on commit addf529

Please sign in to comment.