1. 17 Mar, 2011 2 commits
  2. 16 Mar, 2011 2 commits
  3. 15 Mar, 2011 4 commits
  4. 14 Mar, 2011 8 commits
  5. 12 Mar, 2011 4 commits
    • Jan Beulich's avatar
      x86/HPET: adjust types · f10b5175
      Jan Beulich authored
      'unsigned int' is better suited as an array index on x86-64.
      
      'u32' produces better code than 'unsigned long' on x86-64, so use the
      former for storing 32-bit values read from the hardware.
      
      this_cpu() uses an implicit smp_processor_id(), and hence using
      per_cpu() when the result of smp_processor_id() is already available
      is more efficient.
      
      Fold one case of cpu_isset()+cpu_clear() into cpu_test_and_clear().
      
      Drop the unused return value of evt_do_broadcast().
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      Acked-by: default avatarWei Gang <gang.wei@intel.com>
      f10b5175
    • Jan Beulich's avatar
      x86/HPET: use dynamic allocation for hpet_events[] · 4bb5616c
      Jan Beulich authored
      Typically there are far less than 32 counters available, and hence
      there's no use in wasting the memory on (almost) every system.
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      Acked-by: default avatarWei Gang <gang.wei@intel.com>
      4bb5616c
    • Jan Beulich's avatar
      x86/HPET: cleanup · 0d2ae7a3
      Jan Beulich authored
      - separate init and resume code paths (so that the [larger] init parts
        can go init .init.* sections)
      - drop the separate legacy_hpet_event object, as we can easily re-use
        the first slot of hpet_events[] for that purpose (the whole array is
        otherwise unused when the legacy code is being used)
      - use section placement attributes where reasonable
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      Acked-by: default avatarWei Gang <gang.wei@intel.com>
      0d2ae7a3
    • Jan Beulich's avatar
      x86/HPET: fix initialization order · 8444d910
      Jan Beulich authored
      At least the legacy path can enter its interrupt handler callout while
      initialization is still in progress - that handler checks whether
      ->event_handler is non-NULL, and hence all other initialization must
      happen before setting this field.
      
      Do the same to the MSI initialization just in case (and to keep the
      code in sync).
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      8444d910
  6. 11 Mar, 2011 9 commits
  7. 10 Mar, 2011 4 commits
  8. 09 Mar, 2011 7 commits