Changeset c6218327 in mainline
- Timestamp:
- 2010-04-28T19:58:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 373acb4
- Parents:
- 6e121b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/sysinfo.c
r6e121b8 rc6218327 104 104 /** Recursively find an item in sysinfo tree 105 105 * 106 * Should be called with interrupts disabled 107 * and sysinfo_lock held. 106 * Should be called with sysinfo_lock held. 108 107 * 109 108 * @param name Current sysinfo path suffix. … … 170 169 /** Recursively create items in sysinfo tree 171 170 * 172 * Should be called with interrupts disabled 173 * and sysinfo_lock held. 171 * Should be called with sysinfo_lock held. 174 172 * 175 173 * @param name Current sysinfo path suffix. … … 301 299 { 302 300 /* Protect sysinfo tree consistency */ 303 ipl_t ipl = interrupts_disable();304 301 mutex_lock(&sysinfo_lock); 305 302 … … 314 311 315 312 mutex_unlock(&sysinfo_lock); 316 interrupts_restore(ipl);317 313 } 318 314 … … 334 330 { 335 331 /* Protect sysinfo tree consistency */ 336 ipl_t ipl = interrupts_disable();337 332 mutex_lock(&sysinfo_lock); 338 333 … … 348 343 349 344 mutex_unlock(&sysinfo_lock); 350 interrupts_restore(ipl);351 345 } 352 346 … … 363 357 { 364 358 /* Protect sysinfo tree consistency */ 365 ipl_t ipl = interrupts_disable();366 359 mutex_lock(&sysinfo_lock); 367 360 … … 376 369 377 370 mutex_unlock(&sysinfo_lock); 378 interrupts_restore(ipl);379 371 } 380 372 … … 396 388 { 397 389 /* Protect sysinfo tree consistency */ 398 ipl_t ipl = interrupts_disable();399 390 mutex_lock(&sysinfo_lock); 400 391 … … 409 400 410 401 mutex_unlock(&sysinfo_lock); 411 interrupts_restore(ipl);412 402 } 413 403 … … 422 412 { 423 413 /* Protect sysinfo tree consistency */ 424 ipl_t ipl = interrupts_disable();425 414 mutex_lock(&sysinfo_lock); 426 415 … … 433 422 434 423 mutex_unlock(&sysinfo_lock); 435 interrupts_restore(ipl);436 424 } 437 425 … … 448 436 { 449 437 /* Protect sysinfo tree consistency */ 450 ipl_t ipl = interrupts_disable();451 438 mutex_lock(&sysinfo_lock); 452 439 … … 464 451 465 452 mutex_unlock(&sysinfo_lock); 466 interrupts_restore(ipl);467 453 } 468 454 … … 481 467 /** Dump the structure of sysinfo tree 482 468 * 483 * Should be called with interrupts disabled 484 * and sysinfo_lock held. 469 * Should be called with sysinfo_lock held. 485 470 * 486 471 * @param root Root item of the current (sub)tree. … … 558 543 /* Avoid other functions to mess with sysinfo 559 544 while we are dumping it */ 560 ipl_t ipl = interrupts_disable();561 545 mutex_lock(&sysinfo_lock); 562 546 … … 567 551 568 552 mutex_unlock(&sysinfo_lock); 569 interrupts_restore(ipl);570 553 } 571 554 572 555 /** Return sysinfo item value determined by name 573 556 * 574 * Should be called with interrupts disabled 575 * and sysinfo_lock held. 557 * Should be called with sysinfo_lock held. 576 558 * 577 559 * @param name Sysinfo path. … … 658 640 * are reading it. 659 641 */ 660 ipl_t ipl = interrupts_disable();661 642 mutex_lock(&sysinfo_lock); 662 643 ret = sysinfo_get_item(path, NULL, dry_run); 663 644 mutex_unlock(&sysinfo_lock); 664 interrupts_restore(ipl);665 645 } 666 646 free(path);
Note:
See TracChangeset
for help on using the changeset viewer.