Skip to content

Commit

Permalink
Blackfin arch: show_mem can not be marked as init, since it is called…
Browse files Browse the repository at this point in the history
… during OOM condition

show_mem can not be marked as init, since it is called during
OOM condition from /mm/oom_kill.c:out_of_memory() and
/mm/page_alloc.c:__alloc_pages()

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Robin Getz authored and Bryan Wu committed Oct 10, 2007
1 parent 1a7d91d commit b76f987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static unsigned long empty_bad_page;

unsigned long empty_zero_page;

void __init show_mem(void)
void show_mem(void)
{
unsigned long i;
int free = 0, total = 0, reserved = 0, shared = 0;
Expand Down

0 comments on commit b76f987

Please sign in to comment.