Commit Graph

14 Commits

Author SHA1 Message Date
ad
4d8f47ae2f cpuctl:
- Add interrupt shielding (direct hardware interrupts away from the
  specified CPUs). Not documented just yet but will be soon.

- Redo /dev/cpu time_t compat so no kernel changes are needed.

x86:

- Make intr_establish, intr_disestablish safe to use when !cold.

- Distribute hardware interrupts among the CPUs, instead of directing
  everything to the boot CPU.

- Add MD code for interrupt sheilding. This works in most cases but there is
  a bug where delivery is not accepted by an LAPIC after redistribution. It
  also needs re-balancing to make things fair after interrupts are turned
  back on for a CPU.
2009-04-19 14:11:36 +00:00
ad
47afbfb94e cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
2009-01-28 22:37:09 +00:00
cegger
1754024de3 redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.
2008-11-19 20:56:08 +00:00
rmind
cdaedad50c cpu_identify: check ID against number of processors.
Fix for PR/39955.
2008-11-19 11:05:40 +00:00
ad
c1482a51a0 Cosmetic change to previous. 2008-10-15 08:22:06 +00:00
ad
889ba1e151 Don't map cpu index to hardware id. 2008-10-15 08:08:30 +00:00
rmind
481ae1556f - Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.
2008-06-16 01:41:20 +00:00
rmind
1ce83e28f1 Sync with the latest cpuset changes. 2008-06-16 00:33:24 +00:00
ad
fb00930331 Clarify output of 'id' column. 2008-05-12 14:16:04 +00:00
ad
51e7ff401b PR port-amd64/37461 x86 cpu dmesg output is noisy
Port identifycpu() to userspace. The kernel lies and reports on cpuN while
actually using the values from cpu0, but this attempts to bind itself to the
requested CPU if running as root. That doesn't work properly yet due to
kern/38588, but will do once that's fixed.
2008-05-05 17:54:14 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
martin
23e1f3f5d4 Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).
2008-03-25 15:06:02 +00:00
tnn
0214c0c459 improve usage() 2008-01-09 00:01:33 +00:00
ad
18af8ee9bd Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
2007-08-04 11:02:56 +00:00