~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/powerpc/include/asm/mmu_context.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
extern void mmu_context_init(void);
33
33
#endif
34
34
 
 
35
extern void switch_cop(struct mm_struct *next);
 
36
extern int use_cop(unsigned long acop, struct mm_struct *mm);
 
37
extern void drop_cop(unsigned long acop, struct mm_struct *mm);
 
38
 
35
39
/*
36
40
 * switch_mm is the entry point called from the architecture independent
37
41
 * code in kernel/sched.c
55
59
        if (prev == next)
56
60
                return;
57
61
 
 
62
#ifdef CONFIG_PPC_ICSWX
 
63
        /* Switch coprocessor context only if prev or next uses a coprocessor */
 
64
        if (prev->context.acop || next->context.acop)
 
65
                switch_cop(next);
 
66
#endif /* CONFIG_PPC_ICSWX */
 
67
 
58
68
        /* We must stop all altivec streams before changing the HW
59
69
         * context
60
70
         */
67
77
         * sub architectures.
68
78
         */
69
79
#ifdef CONFIG_PPC_STD_MMU_64
70
 
        if (cpu_has_feature(CPU_FTR_SLB))
 
80
        if (mmu_has_feature(MMU_FTR_SLB))
71
81
                switch_slb(tsk, next);
72
82
        else
73
83
                switch_stab(tsk, next);