lkml.org 
[lkml]   [2008]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86: Implement prctl PR_GET_TSC and PR_SET_TSC

* Andrew Morton <akpm@linux-foundation.org> wrote:

> > --- a/arch/x86/kernel/process_32.c
> > +++ b/arch/x86/kernel/process_32.c
> > @@ -36,6 +36,7 @@
> > #include <linux/personality.h>
> > #include <linux/tick.h>
> > #include <linux/percpu.h>
> > +#include <linux/prctl.h>
> >
> > #include <asm/uaccess.h>
> > #include <asm/pgtable.h>
> > @@ -528,11 +529,12 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
> > }
> > EXPORT_SYMBOL_GPL(start_thread);
> >
> > -#ifdef CONFIG_SECCOMP
> > +#ifdef CONFIG_DISABLE_TSC
> > static void hard_disable_TSC(void)
> > {
> > write_cr4(read_cr4() | X86_CR4_TSD);
> > }
>
> Won't this break this build if CONFIG_DISABLE_TSC=n and
> CONFIG_SECCOMP=y?

it would break - but there was an update patch to this 2/3 patch which
was the one i picked up into x86.git yesterday and which worked fine in
500 overnight randconfig build and bootup tests.

Ingo


\
 
 \ /
  Last update: 2008-04-15 09:49    [W:0.101 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site