Skip to content

Commit

Permalink
percpu: add missing per_cpu_ptr_to_phys() definition for UP
Browse files Browse the repository at this point in the history
Commit 3b034b0 implemented
per_cpu_ptr_to_phys() but forgot to add UP definition.  Add UP
definition which is simple wrapper around __pa().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
  • Loading branch information
Tejun Heo committed Dec 1, 2009
1 parent 3b034b0 commit ee0a6ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ static inline void free_percpu(void *p)
kfree(p);
}

static inline phys_addr_t per_cpu_ptr_to_phys(void *addr)
{
return __pa(addr);
}

static inline void __init setup_per_cpu_areas(void) { }

static inline void *pcpu_lpage_remapped(void *kaddr)
Expand Down

0 comments on commit ee0a6ef

Please sign in to comment.