summaryrefslogtreecommitdiffstats
path: root/Affinity.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* hwloc: use int in hwloc_bitmap_foreach_begin loopChristian Göttsche2021-09-041-3/+3
| | | | Affinity.c:67:10: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned)
* Enable affinity support for non-LinuxChristian Göttsche2021-07-181-2/+2
| | | | | sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
* Rework CPU countingChristian Göttsche2021-07-181-2/+2
| | | | | | | | | | | Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
* Use `#if defined()` syntax when `#elif defined()` is presentBenny Baumann2021-03-211-2/+2
| | | | | | | This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent.
* Use unsigned types for CPU counts and associated variablesChristian Göttsche2021-03-191-7/+7
|
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-2/+2
|
* IWYU update (FreeBSD)Christian Goettsche2020-11-191-1/+1
|
* Embracing branchesBenny Baumann2020-11-021-2/+5
|
* Spacing around operatorsBenny Baumann2020-11-021-2/+2
|
* Whitespace and indentation issuesBenny Baumann2020-11-021-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-0/+3
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Sort headers/includesBenny Baumann2020-09-291-0/+2
|
* Avoid checking of undefined macrosChristian Göttsche2020-09-181-3/+3
| | | | | These feature macros are either define or not defined at all at the configure step.
* Axe automated header generation.Zev Weiss2020-09-031-12/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-2/+5
| | | | | | | | | | | | Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
* Portable affinity using hwlocHisham2016-02-141-7/+12
|
* Check for failure in allocations.Hisham2016-02-021-3/+3
|
* Sorry about the mega-patch.Hisham Muhammad2015-01-211-1/+70
| | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Fix order of calloc arguments.Hisham Muhammad2014-01-161-2/+2
| | | | (Patch by Dawid Gajownik)
* major header cleanupHisham Muhammad2011-12-261-1/+7
|
* Convert affinity control from the deprecated PLPA to HWLOCHisham Muhammad2011-09-241-0/+36

© 2014-2024 Faster IT GmbH | imprint | privacy policy