linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Subodh Nijsure <sunijsur@cisco.com>
To: <linuxppc-dev@ozlabs.org>
Subject: System clock systems to be twice as fast as RTC
Date: Thu, 11 Jun 2009 08:13:54 -0700	[thread overview]
Message-ID: <008701c9eaa7$3c8336c0$8dde520a@cisco.com> (raw)



I am running system with kernel 2.6.10 with following cpuinfo

sh-2.05b# cat /proc/cpuinfo
processor       : 0
cpu             : 440 in Virtex-5 FXT
clock           : 200MHz
revision        : 25.18 (pvr 7ff2 1912)
bogomips        : 296.96
machine         : Xilinx ML507 PPC440 evaluation board
plb bus clock   : 100MHz

The system clock seems to be running twice as as fast as RTC, 

sh-2.05b# date ; sleep 60 ; date
Fri Sep 11 01:37:11 UTC 1970
Fri Sep 11 01:37:41 UTC 1970
sh-2.05b# date ; sleep 60 ; date
Fri Sep 11 01:38:21 UTC 1970
Fri Sep 11 01:38:51 UTC 1970
sh-2.05b# date ; sleep 60 ; date
Fri Sep 11 01:38:59 UTC 1970
Fri Sep 11 01:39:29 UTC 1970

I have tried various values of CONFIG_HZ and that didn't help. Google
searches has shown up this issue on X86 system but not on PPC. Any hints as
to what I should be looking for? I have included relevant portion of config
file..


/Subodh



CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_ASM_SEMAPHORES=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_GENERIC_NVRAM=y
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_LOCALVERSION=""
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SEMMNI=128
CONFIG_SYSVIPC_SEMMSL=250
CONFIG_POSIX_MQUEUE=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_HOTPLUG=y
CONFIG_KOBJECT_UEVENT=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
CONFIG_LTT_MAX_HANDLES=128
CONFIG_LOCKLESS=y
CONFIG_BOOT_FLIGHT_BUFFERS=4
CONFIG_BOOT_FLIGHT_SIZE=524288
CONFIG_FLIGHT_PROC_BUFFERS=8
CONFIG_FLIGHT_PROC_SIZE=8192
CONFIG_NEWEV=y
CONFIG_CSTM=y
CONFIG_CREATE_DEV_CONSOLE=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y
CONFIG_44x=y
CONFIG_BOOKE=y
CONFIG_PTE_64BIT=y
CONFIG_PHYS_64BIT=y
CONFIG_MATH_EMULATION=y
CONFIG_4xx=y
CONFIG_XILINX_ML507=y
CONFIG_XILINX_OCP=y
CONFIG_XILINX_VIRTEX_5_FX=y
CONFIG_XILINX_VIRTEX=y
CONFIG_EMBEDDEDBOOT=y
CONFIG_PPC_GEN550=y
CONFIG_UART0_TTYS0=y
CONFIG_NOT_COHERENT_CACHE=y
CONFIG_PREEMPT_DESKTOP=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_BINFMT_ELF=y
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="console=ttyS0,9600n8 initrd=0x1800000,32M rw root=/dev/ram
ip=$(ipaddr)::(gatewayip):$(subnetmask)::eth0:none eth=$(ethaddr)"
<snip>

             reply	other threads:[~2009-06-11 15:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 15:13 Subodh Nijsure [this message]
2009-06-11 16:07 ` System clock systems to be twice as fast as RTC Nate Case
2009-06-11 21:41 ` Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='008701c9eaa7$3c8336c0$8dde520a@cisco.com' \
    --to=sunijsur@cisco.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).