lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 20 Mar 2009 12:41:53 +0100 (CET)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Michal Simek <monstr@...str.eu>
cc:	LKML <linux-kernel@...r.kernel.org>, john.williams@...alogix.com,
	John Stultz <johnstul@...ibm.com>
Subject: Re: [PATCH 08/57] microblaze_v7: Interrupt handling, timer support,
 selfmod code

On Fri, 20 Mar 2009, Michal Simek wrote:
> > 2) a clock event device which has CLOCK_EVT_FEAT_PERIODIC flag set.
> 
> You meant ONESHOT feature, right?

Sure :)
 
> # cat /proc/timer_list
> Timer List Version: v0.4
> HRTIMER_MAX_CLOCK_BASES: 2
> now at 17205889582 nsecs
> 
> cpu: 0
>  clock 0:
>   .base:       9027a4d0
>   .index:      0
>   .resolution: 1 nsecs
>   .get_time:   ktime_get_real
>   .offset:     0 nsecs
> active timers:
>  clock 1:
>   .base:       9027a4fc
>   .index:      1
>   .resolution: 1 nsecs
>   .get_time:   ktime_get
>   .offset:     0 nsecs
> active timers:
>  #0: per_cpu__tick_cpu_sched, tick_sched_timer, S:01, <800005a6>, swapper/1
>  # expires at 17210000000-17210000000 nsecs [in 4110418 to 4110418 nsecs]
>  #1: <9f2d3a48>, hrtimer_wakeup, S:01, <9f2d3a48>, inetd/54
>  # expires at 17430563969-17431563926 nsecs [in 224674387 to 225674344 nsecs]
>  #2: <9e127a48>, hrtimer_wakeup, S:01, <9e127a48>, thttpd/50
>  # expires at 129748538823-129848538823 nsecs [in 112542649241 to 112642649241
> nsecs]
>   .expires_next   : 17210000000 nsecs
>   .hres_active    : 1

Looks good. Now you can enable CONFIG_NOHZ as well. :) That needs just
the following extras in your idle loop:

-->             tick_nohz_stop_sched_tick(1);
	        while (!need_resched())
		        idle();
-->	        tick_nohz_restart_sched_tick();

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ