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

« back to all changes in this revision

Viewing changes to arch/arm/kernel/ptrace.c

  • 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:
699
699
{
700
700
        int ret;
701
701
        struct thread_info *thread = task_thread_info(target);
702
 
        struct vfp_hard_struct new_vfp = thread->vfpstate.hard;
 
702
        struct vfp_hard_struct new_vfp;
703
703
        const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs);
704
704
        const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr);
705
705
 
 
706
        vfp_sync_hwstate(thread);
 
707
        new_vfp = thread->vfpstate.hard;
 
708
 
706
709
        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
707
710
                                  &new_vfp.fpregs,
708
711
                                  user_fpregs_offset,
723
726
        if (ret)
724
727
                return ret;
725
728
 
726
 
        vfp_sync_hwstate(thread);
 
729
        vfp_flush_hwstate(thread);
727
730
        thread->vfpstate.hard = new_vfp;
728
 
        vfp_flush_hwstate(thread);
729
731
 
730
732
        return 0;
731
733
}