1. 11 5月, 2011 1 次提交
    • S
      xen: do not clear and mask evtchns in __xen_evtchn_do_upcall · 7e186bdd
      Stefano Stabellini 提交于
      Change the irq handler of evtchns and pirqs that don't need EOI (pirqs
      that correspond to physical edge interrupts) to handle_edge_irq.
      
      Use handle_fasteoi_irq for pirqs that need eoi (they generally
      correspond to level triggered irqs), no risk in loosing interrupts
      because we have to EOI the irq anyway.
      
      This change has the following benefits:
      
      - it uses the very same handlers that Linux would use on native for the
      same irqs (handle_edge_irq for edge irqs and msis, and
      handle_fasteoi_irq for everything else);
      
      - it uses these handlers in the same way native code would use them: it
      let Linux mask\unmask and ack the irq when Linux want to mask\unmask
      and ack the irq;
      
      - it fixes a problem occurring when a driver calls disable_irq() in its
      handler: the old code was unconditionally unmasking the evtchn even if
      the irq is disabled when irq_eoi was called.
      
      See Documentation/DocBook/genericirq.tmpl for more informations.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      [v1: Fixed space/tab issues]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      7e186bdd
  2. 20 4月, 2011 1 次提交
  3. 12 4月, 2011 1 次提交
    • R
      PM / Hibernate: Introduce CONFIG_HIBERNATE_CALLBACKS · 1f112cee
      Rafael J. Wysocki 提交于
      Xen save/restore is going to use hibernate device callbacks for
      quiescing devices and putting them back to normal operations and it
      would need to select CONFIG_HIBERNATION for this purpose.  However,
      that also would cause the hibernate interfaces for user space to be
      enabled, which might confuse user space, because the Xen kernels
      don't support hibernation.  Moreover, it would be wasteful, as it
      would make the Xen kernels include a substantial amount of code that
      they would never use.
      
      To address this issue introduce new power management Kconfig option
      CONFIG_HIBERNATE_CALLBACKS, such that it will only select the code
      that is necessary for the hibernate device callbacks to work and make
      CONFIG_HIBERNATION select it.  Then, Xen save/restore will be able to
      select CONFIG_HIBERNATE_CALLBACKS without dragging the entire
      hibernate code along with it.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Tested-by: NShriram Rajagopalan <rshriram@cs.ubc.ca>
      1f112cee
  4. 31 3月, 2011 2 次提交
  5. 29 3月, 2011 4 次提交
  6. 24 3月, 2011 2 次提交
  7. 17 3月, 2011 2 次提交
  8. 16 3月, 2011 5 次提交
  9. 14 3月, 2011 4 次提交
  10. 11 3月, 2011 18 次提交