kern_intr.c (40f65a4df509c6b29b9e72407c7afefe28838844) | kern_intr.c (c495c9356770443e21a88170ddfc517826cfaadc) |
---|---|
1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1133 unchanged lines hidden (view full) --- 1142 ih->ih_need); 1143 1144 if (harvest.swi) { 1145 CTR2(KTR_INTR, "swi_sched: pid %d (%s) gathering entropy", 1146 curproc->p_pid, curthread->td_name); 1147 entropy.event = (uintptr_t)ih; 1148 entropy.td = curthread; 1149 random_harvest(&entropy, sizeof(entropy), 1, 0, | 1/*- 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1133 unchanged lines hidden (view full) --- 1142 ih->ih_need); 1143 1144 if (harvest.swi) { 1145 CTR2(KTR_INTR, "swi_sched: pid %d (%s) gathering entropy", 1146 curproc->p_pid, curthread->td_name); 1147 entropy.event = (uintptr_t)ih; 1148 entropy.td = curthread; 1149 random_harvest(&entropy, sizeof(entropy), 1, 0, |
1150 RANDOM_INTERRUPT); | 1150 RANDOM_SWI); |
1151 } 1152 1153 /* 1154 * Set ih_need for this handler so that if the ithread is already 1155 * running it will execute this handler on the next pass. Otherwise, 1156 * it will execute it the next time it runs. 1157 */ 1158 atomic_store_rel_int(&ih->ih_need, 1); --- 785 unchanged lines hidden --- | 1151 } 1152 1153 /* 1154 * Set ih_need for this handler so that if the ithread is already 1155 * running it will execute this handler on the next pass. Otherwise, 1156 * it will execute it the next time it runs. 1157 */ 1158 atomic_store_rel_int(&ih->ih_need, 1); --- 785 unchanged lines hidden --- |