~ubuntu-branches/ubuntu/karmic/linux-mvl-dove/karmic-proposed

« back to all changes in this revision

Viewing changes to arch/arm/vfp/vfpmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader
  • Date: 2010-03-10 22:24:12 UTC
  • mto: (15.1.2 karmic-security)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100310222412-k86m3r53jw0je7x1
Tags: upstream-2.6.31
ImportĀ upstreamĀ versionĀ 2.6.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 */
39
39
unsigned int VFP_arch;
40
40
 
41
 
extern unsigned int pmDebug;
42
 
extern unsigned int pmDebug1;
43
 
 
44
41
static int vfp_notifier(struct notifier_block *self, unsigned long cmd, void *v)
45
42
{
46
43
        struct thread_info *thread = v;
224
221
{
225
222
        u32 fpscr, orig_fpscr, fpsid, exceptions;
226
223
 
227
 
        /* Adjust saved PC for thumb-2 user program */
228
 
        if (regs->ARM_cpsr & PSR_T_BIT)
229
 
                regs->ARM_pc += 2;
230
 
 
231
224
        pr_debug("VFP: bounce: trigger %08x fpexc %08x\n", trigger, fpexc);
232
225
 
233
226
        /*
383
376
        sysdev_register(&vfp_pm_sysdev);
384
377
}
385
378
 
386
 
void vfp_save(void)
387
 
{
388
 
        struct pm_message temp;
389
 
        /*
390
 
         * if VFP was not initialized yet, then do nothing
391
 
         */
392
 
        if (VFP_arch)
393
 
                vfp_pm_suspend(NULL , temp);
394
 
}
395
 
 
396
 
void vfp_restore(void)
397
 
{
398
 
        if (VFP_arch)
399
 
                vfp_pm_resume(NULL);
400
 
}
401
379
 
402
380
#else
403
381
static inline void vfp_pm_init(void) { }
528
506
}
529
507
 
530
508
late_initcall(vfp_init);
531