Skip to content

Commit

Permalink
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…davem/sparc-2.6.git
  • Loading branch information
Linus Torvalds committed May 5, 2005
2 parents fd4e5f2 + 7cc1712 commit 47c2975
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
5 changes: 0 additions & 5 deletions arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ void default_idle(void)
*/
void cpu_idle(void)
{
if (current->pid != 0)
goto out;

/* endless idle loop with no priority at all */
for (;;) {
if (ARCH_SUN4C_SUN4) {
Expand Down Expand Up @@ -126,8 +123,6 @@ void cpu_idle(void)
schedule();
check_pgt_cache();
}
out:
return;
}

#else
Expand Down
4 changes: 0 additions & 4 deletions arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ void default_idle(void)
*/
void cpu_idle(void)
{
if (current->pid != 0)
return;

/* endless idle loop with no priority at all */
for (;;) {
/* If current->work.need_resched is zero we should really
Expand All @@ -80,7 +77,6 @@ void cpu_idle(void)
schedule();
check_pgt_cache();
}
return;
}

#else
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/sparc64_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ EXPORT_SYMBOL(verify_compat_iovec);

EXPORT_SYMBOL(dump_thread);
EXPORT_SYMBOL(dump_fpu);
EXPORT_SYMBOL(__pte_alloc_one_kernel);
EXPORT_SYMBOL(pte_alloc_one_kernel);
#ifndef CONFIG_SMP
EXPORT_SYMBOL(pgt_quicklists);
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ struct pgtable_cache_struct pgt_quicklists;
#else
#define DC_ALIAS_SHIFT 0
#endif
pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
struct page *page;
unsigned long color;
Expand Down
9 changes: 2 additions & 7 deletions include/asm-sparc64/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,12 @@ static __inline__ void free_pmd_slow(pmd_t *pmd)
#define pmd_populate(MM,PMD,PTE_PAGE) \
pmd_populate_kernel(MM,PMD,page_address(PTE_PAGE))

extern pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);

static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{
return __pte_alloc_one_kernel(mm, address);
}
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);

static inline struct page *
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
{
pte_t *pte = __pte_alloc_one_kernel(mm, addr);
pte_t *pte = pte_alloc_one_kernel(mm, addr);

if (pte)
return virt_to_page(pte);
Expand Down

0 comments on commit 47c2975

Please sign in to comment.