Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-s…
Browse files Browse the repository at this point in the history
…ched

* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
  debug: add end-of-oops marker
  sched: rt: account the cpu time during the tick
  • Loading branch information
Linus Torvalds committed Dec 20, 2007
2 parents 17eb2c3 + 2c3b20e commit faa4877
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kernel/panic.c
Expand Up @@ -19,6 +19,7 @@
#include <linux/nmi.h>
#include <linux/kexec.h>
#include <linux/debug_locks.h>
#include <linux/random.h>

int panic_on_oops;
int tainted;
Expand Down Expand Up @@ -265,13 +266,30 @@ void oops_enter(void)
do_oops_enter_exit();
}

/*
* 64-bit random ID for oopses:
*/
static u64 oops_id;

static int init_oops_id(void)
{
if (!oops_id)
get_random_bytes(&oops_id, sizeof(oops_id));

return 0;
}
late_initcall(init_oops_id);

/*
* Called when the architecture exits its oops handler, after printing
* everything.
*/
void oops_exit(void)
{
do_oops_enter_exit();
init_oops_id();
printk(KERN_WARNING "---[ end trace %016llx ]---\n",
(unsigned long long)oops_id);
}

#ifdef CONFIG_CC_STACKPROTECTOR
Expand Down
2 changes: 2 additions & 0 deletions kernel/sched_rt.c
Expand Up @@ -208,6 +208,8 @@ move_one_task_rt(struct rq *this_rq, int this_cpu, struct rq *busiest,

static void task_tick_rt(struct rq *rq, struct task_struct *p)
{
update_curr_rt(rq);

/*
* RR tasks need a special form of timeslice management.
* FIFO tasks have no timeslices.
Expand Down

0 comments on commit faa4877

Please sign in to comment.