Merge git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86
* git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86: x86: fix APIC related bootup crash on Athlon XP CPUs time: add ADJ_OFFSET_SS_READ x86: export the symbol empty_zero_page on the 32-bit x86 architecture x86: fix kprobes_64.c inlining borkage pci: use pci=bfsort for HP DL385 G2, DL585 G2 x86: correctly set UTS_MACHINE for "make ARCH=x86" lockdep: annotate do_debug() trap handler x86: turn off iommu merge by default x86: fix ACPI compile for LOCAL_APIC=n x86: printk kernel version in WARN_ON and other dump_stack users ACPI: Set max_cstate to 1 for early Opterons. x86: fix NMI watchdog & 'stopped time' problem
This commit is contained in:
@@ -249,10 +249,12 @@ int do_adjtimex(struct timex *txc)
|
||||
|
||||
/* Now we validate the data before disabling interrupts */
|
||||
|
||||
if ((txc->modes & ADJ_OFFSET_SINGLESHOT) == ADJ_OFFSET_SINGLESHOT)
|
||||
if ((txc->modes & ADJ_OFFSET_SINGLESHOT) == ADJ_OFFSET_SINGLESHOT) {
|
||||
/* singleshot must not be used with any other mode bits */
|
||||
if (txc->modes != ADJ_OFFSET_SINGLESHOT)
|
||||
if (txc->modes != ADJ_OFFSET_SINGLESHOT &&
|
||||
txc->modes != ADJ_OFFSET_SS_READ)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (txc->modes != ADJ_OFFSET_SINGLESHOT && (txc->modes & ADJ_OFFSET))
|
||||
/* adjustment Offset limited to +- .512 seconds */
|
||||
@@ -372,7 +374,8 @@ int do_adjtimex(struct timex *txc)
|
||||
leave: if ((time_status & (STA_UNSYNC|STA_CLOCKERR)) != 0)
|
||||
result = TIME_ERROR;
|
||||
|
||||
if ((txc->modes & ADJ_OFFSET_SINGLESHOT) == ADJ_OFFSET_SINGLESHOT)
|
||||
if ((txc->modes == ADJ_OFFSET_SINGLESHOT) ||
|
||||
(txc->modes == ADJ_OFFSET_SS_READ))
|
||||
txc->offset = save_adjust;
|
||||
else
|
||||
txc->offset = ((long)shift_right(time_offset, SHIFT_UPDATE)) *
|
||||
|
Reference in New Issue
Block a user