~ubuntu-branches/ubuntu/precise/linux-linaro-u8500/precise

« back to all changes in this revision

Viewing changes to arch/mips/kernel/process.c

  • Committer: Bazaar Package Importer
  • Author(s): John Rigby, Upstream Fixes, Andy Green, John Rigby
  • Date: 2011-04-14 12:16:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110414121606-b77podkyqgr2oix7
Tags: 2.6.38-1002.3
[ Upstream Fixes ]

* MUSB: shutdown: Make sure block is awake before doing shutdown
  - LP: #745737
* Fixed gpio polarity of gpio USB-phy reset.
  - LP: #747639

[ Andy Green ]

* LINARO: SAUCE: disable CONFIG_OMAP_RESET_CLOCKS
  - LP: #752900

[ John Rigby ]

* Rebase to new upstreams:
  Linux v2.6.38.1
  linaro-linux-2.6.38-upstream-29Mar2011
  Ubuntu-2.6.38-7.35
* SAUCE: OMAP4: clock: wait for module to become accessible on
  a clk enable
  - LP: #745737
* Rebase to new upstreams:
  Linux v2.6.38.2
  linaro-linux-2.6.38-upstream-5Apr2011
  Ubuntu-2.6.38-8.41
  - LP: #732842
* Update configs for device tree, dvfs and lttng
* LINARO: add building of dtb's
* LINARO: SAUCE: Disable lowest operating freqs on omap34xx
  - LP: #732912

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <linux/completion.h>
26
26
#include <linux/kallsyms.h>
27
27
#include <linux/random.h>
 
28
#include <trace/sched.h>
28
29
 
29
30
#include <asm/asm.h>
30
31
#include <asm/bootinfo.h>
42
43
#include <asm/inst.h>
43
44
#include <asm/stacktrace.h>
44
45
 
 
46
DEFINE_TRACE(sched_kthread_create);
 
47
 
45
48
/*
46
49
 * The idle thread. There's no useful work to be done, so just try to conserve
47
50
 * power and have a low exit latency (ie sit in a loop waiting for somebody to
234
237
long kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
235
238
{
236
239
        struct pt_regs regs;
 
240
        long pid;
237
241
 
238
242
        memset(&regs, 0, sizeof(regs));
239
243
 
249
253
#endif
250
254
 
251
255
        /* Ok, create the new process.. */
252
 
        return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, &regs, 0, NULL, NULL);
 
256
        pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED,
 
257
                        0, &regs, 0, NULL, NULL);
 
258
        trace_sched_kthread_create(fn, pid);
 
259
        return pid;
253
260
}
254
261
 
255
262
/*