« first day (2445 days earlier)      last day (404 days later) » 

2:35 AM
@Mgetz I see
 
 
4 hours later…
6:55 AM
@a_sid Note that there's not really any difference here. A tuple is just a different notation for defining a struct. So it's mostly a question of defining a struct directly, or using a template to define one indirectly (which is what tuple does). In a few cases (like using these with a GPU) it can make sense to change things up so instead of an array of structs, you have a number of arrays you view in parallel.
For example, if you have a struct like struct point { double x, y, z;};, and then a point points[100] it can be useful to change that to double Xs[100], double Ys[100], double Zs[100];. But honestly, you usually do that to make life more convenient for the hardware, even though it's less convenient for the programmer.
 
 
7 hours later…
1:44 PM
I made an Linux distribution and had to make it real-time. In order to do so I went to menuconfig and could only choose between:

CONFIG_PREEMPT_NONE
CONFIG_PREEMPT_VOLUNTARY
CONFIG_PREEMPT

But **not** CONFIG_PREEMPT_RT. For this to be available I had to modify one of the kernel's Kconfig files. I, more precisely, had to change:

config ARCH_SUPPORTS_RT
bool

to

config ARCH_SUPPORTS_RT
def_bool y

Then the RT option appeared in menuconfig and I could select it. Now my kernel is real-time and I have no issues so far. So my question is:
Why are modifications to kconfig needed? Why would this not just be enabled so I can freely choose the options I want in menuconfig. I don't get the rationale
 

« first day (2445 days earlier)      last day (404 days later) »