Re: Re: adjusting timeslice in sched.c of linux kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello....

> As for disabling the interupt timer: is there a way to block it?
> rather than disable? or is that what you mean? Im not familiar with
> the timer softirq. where can i find it and how can i disable it and
> then re-enable it?

Pssst, don't do top posting :) You've been warned ;)

OK I admit, I forgot in which context scheduler_tick() is called. it is 
the functions which do the actual decrement of timeslice. maybe it is 
directly called inside timer interrupt handler, maybe it is called 
inside tasklet. From what I read at a glance inside Linux kernel 
source, big chance it is called inside interrupt handler.

In this case, disable_irq() is your friend. Pass timer irq as the 
parameter (see /proc/interrupts to see which irq line occupied by timer 
). Please note that disable_irq() might block as it waits all the 
related interrupt handler to finish first.

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux