Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57796
b: refs/heads/master
c: 321f6e0
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jun 11, 2007
1 parent 2d76154 commit a2bc693
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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: 5716e514ed526a819775c45a73f1c8b65309e9d3
refs/heads/master: 321f6e0f5183e489448ae61af79cca1b7fe43e88
8 changes: 4 additions & 4 deletions trunk/arch/blackfin/mm/blackfin_sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Description: SRAM driver for Blackfin ADSP-BF5xx
*
* Modified:
* Copyright 2004-2006 Analog Devices Inc.
* Copyright 2004-2007 Analog Devices Inc.
*
* Bugs: Enter bugs at http://blackfin.uclinux.org/
*
Expand Down Expand Up @@ -80,7 +80,7 @@ static struct l1_sram_piece l1_inst_sram[CONFIG_L1_MAX_PIECE];
#endif

/* L1 Scratchpad SRAM initialization function */
void l1sram_init(void)
void __init l1sram_init(void)
{
printk(KERN_INFO "Blackfin Scratchpad data SRAM: %d KB\n",
L1_SCRATCH_LENGTH >> 10);
Expand All @@ -94,7 +94,7 @@ void l1sram_init(void)
spin_lock_init(&l1sram_lock);
}

void l1_data_sram_init(void)
void __init l1_data_sram_init(void)
{
#if L1_DATA_A_LENGTH != 0
printk(KERN_INFO "Blackfin DATA_A SRAM: %d KB\n",
Expand All @@ -120,7 +120,7 @@ void l1_data_sram_init(void)
spin_lock_init(&l1_data_sram_lock);
}

void l1_inst_sram_init(void)
void __init l1_inst_sram_init(void)
{
#if L1_CODE_LENGTH != 0
printk(KERN_INFO "Blackfin Instruction SRAM: %d KB\n",
Expand Down
20 changes: 10 additions & 10 deletions trunk/arch/blackfin/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Description:
*
* Modified:
* Copyright 2004-2006 Analog Devices Inc.
* Copyright 2004-2007 Analog Devices Inc.
*
* Bugs: Enter bugs at http://blackfin.uclinux.org/
*
Expand Down Expand Up @@ -53,7 +53,7 @@ static unsigned long empty_bad_page;

unsigned long empty_zero_page;

void show_mem(void)
void __init show_mem(void)
{
unsigned long i;
int free = 0, total = 0, reserved = 0, shared = 0;
Expand Down Expand Up @@ -86,7 +86,7 @@ void show_mem(void)
* The parameters are pointers to where to stick the starting and ending
* addresses of available kernel virtual memory.
*/
void paging_init(void)
void __init paging_init(void)
{
/*
* make sure start_mem is page aligned, otherwise bootmem and
Expand Down Expand Up @@ -125,7 +125,7 @@ void paging_init(void)
}
}

void mem_init(void)
void __init mem_init(void)
{
unsigned int codek = 0, datak = 0, initk = 0;
unsigned long tmp;
Expand Down Expand Up @@ -169,7 +169,7 @@ void mem_init(void)
}

#ifdef CONFIG_BLK_DEV_INITRD
void free_initrd_mem(unsigned long start, unsigned long end)
void __init free_initrd_mem(unsigned long start, unsigned long end)
{
int pages = 0;
for (; start < end; start += PAGE_SIZE) {
Expand All @@ -183,14 +183,14 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
#endif

void free_initmem(void)
void __init free_initmem(void)
{
#ifdef CONFIG_RAMKERNEL
unsigned long addr;
/*
* the following code should be cool even if these sections
* are not page aligned.
*/
/*
* the following code should be cool even if these sections
* are not page aligned.
*/
addr = PAGE_ALIGN((unsigned long)(__init_begin));
/* next to check that the page we free is not a partial page */
for (; addr + PAGE_SIZE < (unsigned long)(__init_end);
Expand Down

0 comments on commit a2bc693

Please sign in to comment.