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

« back to all changes in this revision

Viewing changes to arch/sparc/kernel/process_32.c

  • 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:
128
128
        set_thread_flag(TIF_POLLING_NRFLAG);
129
129
        /* endless idle loop with no priority at all */
130
130
        while(1) {
131
 
                while (!need_resched())
132
 
                        cpu_relax();
 
131
#ifdef CONFIG_SPARC_LEON
 
132
                if (pm_idle) {
 
133
                        while (!need_resched())
 
134
                                (*pm_idle)();
 
135
                } else
 
136
#endif
 
137
                {
 
138
                        while (!need_resched())
 
139
                                cpu_relax();
 
140
                }
133
141
                preempt_enable_no_resched();
134
142
                schedule();
135
143
                preempt_disable();