~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/platform/x86/intel_ips.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
static bool
345
345
ips_gpu_turbo_enabled(struct ips_driver *ips);
346
346
 
 
347
#ifndef readq
 
348
static inline __u64 readq(const volatile void __iomem *addr)
 
349
{
 
350
        const volatile u32 __iomem *p = addr;
 
351
        u32 low, high;
 
352
 
 
353
        low = readl(p);
 
354
        high = readl(p + 1);
 
355
 
 
356
        return low + ((u64)high << 32);
 
357
}
 
358
#endif
 
359
 
347
360
/**
348
361
 * ips_cpu_busy - is CPU busy?
349
362
 * @ips: IPS driver struct
1111
1124
                last_msecs = jiffies_to_msecs(jiffies);
1112
1125
                expire = jiffies + msecs_to_jiffies(IPS_SAMPLE_PERIOD);
1113
1126
 
1114
 
                __set_current_state(TASK_UNINTERRUPTIBLE);
 
1127
                __set_current_state(TASK_INTERRUPTIBLE);
1115
1128
                mod_timer(&timer, expire);
1116
1129
                schedule();
1117
1130