~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/uv/uv_hub.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
/* UV global physical address --> socket phys RAM */
319
319
static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa)
320
320
{
321
 
        unsigned long paddr = gpa & uv_hub_info->gpa_mask;
 
321
        unsigned long paddr;
322
322
        unsigned long remap_base = uv_hub_info->lowmem_remap_base;
323
323
        unsigned long remap_top =  uv_hub_info->lowmem_remap_top;
324
324
 
325
325
        gpa = ((gpa << uv_hub_info->m_shift) >> uv_hub_info->m_shift) |
326
326
                ((gpa >> uv_hub_info->n_lshift) << uv_hub_info->m_val);
327
 
        gpa = gpa & uv_hub_info->gpa_mask;
 
327
        paddr = gpa & uv_hub_info->gpa_mask;
328
328
        if (paddr >= remap_base && paddr < remap_base + remap_top)
329
329
                paddr -= remap_base;
330
330
        return paddr;